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

Adding parameters


Another thing you can do with PostPostValidate is injecting your own information into the session parameters table. Normally, these are collected using the endpoint detection mechanism (we spoke about customizing that in Chapter 3, Customizing Endpoint Detection and Policies), but you can add more right here using the function SetSessionParamWithType. This function has the following syntax:

SetSessionParamWithType g_cookie, <Parameter Name>, <Parameter value>, <type of parameter>

This function also resides in \Von\InternalSite\Inc\SessionMgr.inc and is used extensively by other code pieces.

This structure can be used to perform operations on data collected as part of the endpoint policy, or by the server itself, and then inject the results into the session itself. For instance, you can check the current time and convert the result to some flag or value. Once you put that flag back into the session, you can have the session policy allow or deny access to...