Programming Guides › Programming Guide for C › Agent API › Custom Agents and Single Sign-On › Login Through a Custom Agent
Login 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 Sm_AgentApi_Login() to authenticate the user. The user is challenged for credentials.
- Custom agent calls Sm_AgentApi_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.