Credentials.GetCredentials & SingleSignonLocator.GetCredenti
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Credentials.GetCredentials & SingleSignonLocator.GetCredenti

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Mutley
Guest





Posted: Tue Jan 18, 2005 9:41 pm    Post subject: Credentials.GetCredentials & SingleSignonLocator.GetCredenti Reply with quote

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>";
}

}
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB