We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Authenticating external application using Service Cloud as the identity provider

Received Response
27
Views
10
Comments
edited Apr 13, 2018 2:56AM in Integrations and APIs 10 comments

Content

I am trying to authenticate using single sign-on by sending this SAML request to Service Cloud:

POST /cgi-bin/rnowgse00137.cfg/php/sso/saml2/idp/post/login.php HTTP/1.1
Host: {sc-host}
Origin: {app-host}
Content-Type: application/x-www-form-urlencoded
Content-Length: nnn

SAMLRequest={saml}&RelayState=some_token

where {saml} is a base64 encoding of this request:

<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
  xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
  ID="_8dcc6985f6d9f385f0bbd4562ef848ef3ae78d87d7" Version="2.0"
  IssueInstant="2018-03-10T15:26:20Z"
  AssertionConsumerServiceURL="https://{app-host}/assertion&quot;
  ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
  Destination="

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!