Programming Guides › Programming Guide for C › Agent API › Custom Agents and Single Sign-On › Login Through a Standard Agent
Login Through a Standard Agent
Here is the typical sequence of events in a single sign-on environment when the initial login is through the standard SiteMinder Web Agent:
- User logs in through the standard agent.
- Standard agent authenticates the user by challenging the user for credentials through the login call.
- SiteMinder creates the SMSESSION cookie in the user's browser and inserts the encrypted token containing session information.
- User requests a resource protected by a custom agent.
- The custom agent obtains the SMSESSION cookie from the user's request and extracts the token.
- The custom agent passes the token to the function Sm_AgentApi_DecodeSSOToken(). The function decodes the token and returns a subset of the token's attributes to the custom agent.
- The custom agent obtains the session specification from the token and passes the session specification to Sm_AgentApi_Login(). The login call validates the user without challenging the user for credentials.
- User requests a resource protected by a standard SiteMinder agent.
- The standard agent performs a login operation, which validates the user based on the contents of the SMSESSION cookie. The user is not challenged for credentials.