Hi, I am double checking your code and I see that the problem is the HTTP Binding, for SAML you need to Post from the Browser and not from the PHP server.
http://en.wikipedia.org/wiki/SAML_2.0#SAML_2.0_Bindings Julian. On Apr 2, 5:52 pm, "Julian (Google)" <[EMAIL PROTECTED]> wrote: > Hi, > > Do you get any errors? > > You could try to go to email for example to know if the SSO went > through. Did it work before your modification? > > Julian. > > On Apr 1, 3:41 pm, slizadel <[EMAIL PROTECTED]> wrote: > > > Some more information on what I am doing: Using the same PHP example > > code from Google, I am trying to use curl to POST the SAMLResponse and > > RelayState so that the user is automatically redirected. I inserted > > the code in identity_provider.php to post the same values that are > > being passed by the javascript. When I disable the curl POST function, > > the submit button still works. > > > Function to POST values: > > function httpsPost($Url, $strRequest) { > > // Initialisation > > $ch=curl_init(); > > // Set parameters > > curl_setopt($ch, CURLOPT_URL, $Url); > > // Return a variable instead of posting it directly > > //curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > > // Active the POST method > > curl_setopt($ch, CURLOPT_POST, 1) ; > > // Request > > curl_setopt($ch, CURLOPT_POSTFIELDS, $strRequest); > > curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); > > curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); > > // execute the connexion > > $result = curl_exec($ch); > > // Close it > > curl_close($ch); > > return $result; > > } > > > Call to function: > > > $data = array ('SAMLResponse' => $samlResponse, 'RelayState' => > > $relayStateURL); > > $response = httpsPost($acsURL, $data); > > > Hope that helps. > > > On Apr 1, 9:11 am, slizadel <[EMAIL PROTECTED]> wrote: > > > > I am trying to get SSO working with a test domain. Using the provided > > > PHP example code, I have changed the login mechanism to fit our > > > environment and now I am trying to POST the SAMLReponse and > > > RelayState, but each time I post the information, I get redirected > > > back to my sign on page. > > > > Any suggestions as to where I can look solve this problem? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
