From Bright Pattern Documentation
< 5.8:Identity-provider-api-specification
Revision as of 04:13, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
Session Check
This method checks that a session exists, and then it returns the ID of the user who has the session.
Session Check also extends the life of the session by 15 minutes (full session inactivity timeout).
HTTP Method
GET
Request
session_check (session_id)
Example
GET /session_check?session_id=8439309F-4C70-44CF-9D92-FA0E56C97BD0 HTTP/1.1
Responses
A success response includes the "200 OK" with application/JSON body containing session_id.
An error response is returned with a 4xx HTTP response code and a JSON body containing detailed error information.
Code | Description | Example |
200 | OK |
HTTP/1.1 200 OK { “session_id”: “8439309F-4C70-44CF-9D92-FA0E56C97BD0”, "tenant_id":"4E3707BE-CD47-4627-A5D9-34EF70A0DE42", "user_id":"9E33BE47-47DF-40F7-B160-8B90E12FE6C5" } |
401 | not authenticated |
{ “error” : “not_logged_in” } |