Mutley
Guest
|
Posted:
Tue Jan 18, 2005 9:41 pm Post subject:
Credentials.GetCredentials & SingleSignonLocator.GetCredenti |
|
|
Can any body assist in Single Sign-on.
Have got MSSSSO to work, but trying to redirect to a login page is the
credentials are not supplied.
I am using the same enterprise application definition in both
GetCredentials and GetCredentialEntryUrl but something is going wrong
any ideas??.
thanks in advance.
try
{
// Call MSSSO
Credentials.GetCredentials(Convert.ToUInt32(1),"Test",ref
strCredentials);
//save credentials
userEmail=strCredentials[0];
password=strCredentials[1];
//Create connection string
strConnection = "conection details";
}
catch (SingleSignonException x)
{
if(SSOReturnCodes.SSO_E_CREDS_NOT_FOUND == x.LastErrorCode)
{
string strSSOLogonFormUrl =
SingleSignonLocator.GetCredentialEntryUrl("Test");
lblMessage.Text = "<a href=" + strSSOLogonFormUrl +">Click here to
save your credentials for the Enterprise Application.</a>";
}
} |
|