Programming Guides › Programming Guide for Java › Agent API › Single Sign-on › Log on through a Custom Agent
Log on through a Custom Agent
Here is the typical sequence of events in a single sign-on environment when the initial login is through the custom agent:
- User logs in through the custom agent.
- Custom agent calls login() to authenticate the user. The user is challenged for credentials.
- Custom agent calls createSSOToken() and passes to it information about the user (user name, user DN, IP address of the requesting client). SiteMinder adds this information to a token along with session information returned from the login call. SiteMinder also encrypts the information in the token.
- Custom agent creates the SMSESSION cookie in the user’s browser and writes the token to the cookie.
- User requests a resource protected by a standard SiteMinder agent.
- The standard agent performs a login operation, which validates the user based on the information in the single sign-on cookie. The user is not challenged for credentials.