Book Image

Mastering Microsoft Forefront UAG 2010 Customization

Book Image

Mastering Microsoft Forefront UAG 2010 Customization

Overview of this book

While UAG is built to integrate with many environments and publish dozens of application types, many organizations require a certain level of customization to meet their needs. With this book in hand, you will be equipped to deal with these types of customization scenarios, and you will be confident in using such workarounds without hassle and trial and error. Written by some of the leading experts on UAG, "Mastering Microsoft Forefront UAG 2010 Customization" covers the most complex and challenging options for customizing UAG in a way that is friendly and easy to follow. It walks you through various customization tasks, including explanations and code samples, as well as creative ideas for troubleshooting your work. Until now, only a few of the extensions to UAG's services have been publicly available, and most were only known to a select few. Now, this can include you! Throughout this book, you will tackle how to change the system's look-and-feel, deal with advanced authentication schemes and write special functions that need to be executed as part of the client interaction. With "Mastering Microsoft Forefront UAG 2010 Customization", you too can learn how to customize various aspects of UAG's functionality to enhance your organization or customers' experience.
Table of Contents (16 chapters)
Mastering Microsoft Forefront UAG 2010 Customization
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface

Integrating your own code and interacting with UAG's COM object


Now that you have a file in place, let's see what you can do with it. The following is a simple example:

The preceding file does something rather simple, but amazingly powerful. It invokes the function GetSessionParams (which is located in \von\InternalSite\inc\SessionMgr.inc) to populate the cPolicies collection with the various parameters that were collected as part of the session. Then, the script uses a for-each loop to go through that collection, to print out the name of each parameter and its returned value. Since this piece of code runs right after a user has logged in, in the context of the user's session, this will simply print out a list of all parameters for that specific session.

Just consider the wealth of information these parameters contain and you'll soon realize the possibilities they offer and the fact that you can use them for some many different purposes. For example, you could use the response.redirect method...