Session management API
The User Session Management API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
BasicAuth: HTTP basic
OAuth2: oauth2
authorizationCode flow, token URL http://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize
me
Retrieve active sessions of the authenticated user
GET /me/sessions
A user can have multiple active sessions. This API retrieves information of all the active sessions of the authenticated user.
Scope(Permission) required: internal_login
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer (int32) | Maximum number of records to return. This parameter is not supported yet. | |
offset | query | integer (int32) | Number of records to skip for pagination. This parameter is not supported yet. | |
filter | query | string | Condition to filter the retrieval of records. This parameter is not supported yet. | |
sort | query | string | Define the order in which the retrieved records should be sorted. This parameter is not supported yet. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successfully retrieved session information. | Sessions |
401 | Unauthorized | |
403 | Resource Forbidden | |
404 | Resource Not Found | |
500 | Internal Server Error | Error |
Terminate all the active sessions of the authenticated user
DEL /me/sessions
A user has multiple active sessions. This API terminates all the active sessions of the authenticated user.
Scope(Permission) required: internal_login
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | |
400 | Invalid input request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
500 | Internal Server Error | Error |
Terminate a given session of the authenticated user
DEL /me/sessions/{session-id}
A user has multiple active sessions. This API terminates a specific session of the authenticated user identified by the session-id.
Scope(Permission) required: internal_login
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
session-id | path | string | Yes | ID of the session. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | |
400 | Invalid input request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
500 | Internal Server Error | Error |
Schemas
Application
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique ID of the application. |
subject | string | Yes | Username of the logged in user for the application. |
appName | string | Yes | Name of the application. |
appId | string | Yes | ID of the application. |
Session
Type: object
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
userId | string | ID of the user of the session. | |
idpName | string | Identity provider name that the session authenticated. Will only be returned for federated authentication sessions. | |
applications | array of Application | List of applications in the session. | |
userAgent | string | User agent of the session. | |
ip | string | IP address of the session. | |
loginTime | string | Login time of the session. | |
lastAccessTime | string | Last access time of the session. | |
id | string | ID of the session. |
Sessions
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
userId | string | ||
sessions | array of Session | List of active sessions. |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | string | Yes | |
description | string | ||
traceId | string |
Was this page helpful?