Suresh wrote: > According to the read me file I have followed all steps on Single Sign > On > 1,Enabled SSO Uploaded .cer file 2.Put .pfx file on server and 3.add > Path to my web.config > .What I do is i call the SetupGoogleLoginForm Method when username and > password are correct accoring to my database.I have done each step > shown on the Readme file with the sample code.It returns me Actionurl > value as https://www.google.com/a/[My Domain Name].com/acs . I am > confused about thing that do I need to pass any password to Google?Am > I missing something here?Code goes as below > I did this a few months (uh...over a year ago, now) so I'm a bit rusty. But no, no password to Google. Since you're checking locally, Google doesn't know what it is, so doesn't care. You _do_ get some sort of authentication token, and that needs to be passed in the very long URL that you use subsequently to connect.
In my case, when I log in, in the background, I authenticate to and LDAP (ActiveDirectory, actually) server and get redirecteed to this: http://mail.google.com/a/(MyDomain)/?AuthEventSource=SSO#inbox and I'm right at my inbox. So, if you're getting there, great, you've suceeded! :) > Private Sub SetupGoogleLoginForm(ByVal userName As String) > Dim samlRequest As String = Request.QueryString("SAMLRequest") > If samlRequest Is Nothing Then > samlRequest = Request.Form("SAMLRequest") > End If > Dim relayState As String = Request.QueryString("RelayState") > If relayState Is Nothing Then > relayState = Request.Form("RelayState") > End If > If samlRequest IsNot Nothing AndAlso relayState IsNot Nothing > Then > Dim responseXml As String > Dim actionUrl As String > SamlParser.CreateSignedResponse(samlRequest, userName, > responseXml, actionUrl) > > Response.Redirect(actionUrl) > Response.Write(responseXml) > Response.Write(relayState) > End If My code was hacked up sample code in Java, and it's at work. I really need to get back to it and clean it up, but so far, it's working and I'm not going to go in there and break it :) So, sorry, I can't tell you if yours is right, but if it works, it stands a good chance of being it. -- Andre Roy -- If that don't fix it, then it's still broke. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Apps APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-apps-apis?hl=en -~----------~----~----~----~------~----~------~--~---
