Sun OpenSSO Enterprise Policy Agent 3.0 User's Guide for J2EE Agents

Fetching Session Attributes in J2EE Agents

To obtain user-specific information by fetching profile attributes, assign a mode to the session attribute property and map the session attributes to be populated under specific names for the currently authenticated user. The following example first demonstrates how to assign the REQUEST_ATTRIBUTE mode for fetching session attributes and then demonstrates a way to map those attributes:

Example:

In OpenSSO Enterprise Console, Select the REQUEST_ATTRIBUTE mode option of the Session Attribute Fetch Mode property (Tab: Application, Name: com.sun.identity.agents.config.session.attribute.fetch.mode).

Then, map session attributes using the property labeled Session Attribute Mapping (Tab: Application, Name: com.sun.identity.agents.config.session.attribute.mapping), such as illustrated in the following example:

Map Key

UserToken

Corresponding Map Value

CUSTOM-userid

When you are done setting the Session Attribute Mapping property as described in this example, it appears in OpenSSO Enterprise Console with the following format:


[UserToken]=CUSTOM-userid