Single Sign-On API \ Get SSO session details for identity PHP SDK

Send a GET request to this endpoint to retrieve the Single Sign-On session details of an identity.

Resource/URI - Base Single Sign-On Required GET POST PUT DELETE
Single Sign-On Sessions /sso/sessions.json List SSO sessions
Single Sign On Session /sso/sessions/<sso_session_token>.json Read SSO session Delete SSO session

Resource/URI - Identity Single Sign-On Required GET POST PUT DELETE
Single Sign-On Session Identity /sso/sessions/identities/<identity_token>.json Read SSO session Start SSO session Destroy SSO session

Workflow

Request: the code to send to the API

Send a GET request to the endpoint /sso/sessions/identites/<identity_token>.json in order to retrieve the Single Sign-On session details for the specified identity_token.

Result: the code returned by the API

The API either returns a HTTP status code 200 and the details of the session or an appropriate message body with further details on the error that occured. A status code 404 is returned if there is no session for the specified identity_token.

Example Resultset

{
  "response": {
    "request": {
      "date": "Fri, 03 Feb 2017 12:14:02  0100",
      "resource": "/sso/sessions/identities/a5678901-2345-44ee-8e8e-2067057d1067.json",
      "status": {
        "flag": "success",
        "code": 200,
        "info": "Your request has been processed successfully"
      }
    },
    "result": {
      "data": {
        "sso_session": {
          "sso_session_token": "e8d8c09e-4c96-4b11-a20e-9cd729afd0e5",
          "user_token": "12345678-2222-46b9-929c-d839f4d58e8e",
          "identity_token": "a5678901-2345-44ee-8e8e-2067057d1067",
          "num_cookies_set": 0,
          "date_creation": "Fri, 03 Feb 2017 12:13:58  0100",
          "date_expiration": "Sat, 04 Feb 2017 12:13:58  0100"
        }
      }
    }
  }
}

User Contributed Notes