Single Sign-On API \ Get SSO session details for identity PHP SDK
Single Sign-On/SSO API Resources
Resource/URI - Base | 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 | GET | POST | PUT | DELETE |
---|---|---|---|---|
Single Sign-On Identity Session
/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 of a given identity. The <identity_token>
has to be replaced by the unique token of an identity.
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.
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", "top_realm": "garden", "sub_realm": "vegetables", "data": "carrot", "num_cookies_set": 0, "date_creation": "Fri, 03 Feb 2017 12:13:58 0100", "date_expiration": "Sat, 04 Feb 2017 12:13:58 0100" } } } } }