Previous Topic: Well-known User Attributes

Next Topic: Integration with the Web Agent

Retrieving a Password

Some applications require knowledge of user credentials. SiteMinder can make the user password available to the application by returning a well-known attribute SM_USERPASSWORD. This attribute is only available after a successful authentication through the OnAuthAccept event.

The following example demonstrates retrieving a password.

char  lpszSmPassword(128);
int   nBytes =

lpUserContext->fGetProp(lpUserContext->lpParam,
                        "SM_USERPASSWORD",
                        sizeof (lpszSmPassword),
                        lpszSmPassword);


Copyright © 2010 CA. All rights reserved. Email CA about this topic