Skip to main content
You're reading Identity & Access Management 7.0.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

Session management API

Download OpenAPI (YAML)Version v1

Base URL: https://localhost:9443/t/carbon.super/api/users/v1

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

NameInTypeRequiredDescription
limitqueryinteger (int32)

Maximum number of records to return. This parameter is not supported yet.

offsetqueryinteger (int32)

Number of records to skip for pagination. This parameter is not supported yet.

filterquerystring

Condition to filter the retrieval of records. This parameter is not supported yet.

sortquerystring

Define the order in which the retrieved records should be sorted. This parameter is not supported yet.

Responses

CodeDescriptionSchema
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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
session-idpathstringYes

ID of the session.

Responses

CodeDescriptionSchema
204

No Content

400

Invalid input request

Error
401

Unauthorized

403

Resource Forbidden

500

Internal Server Error

Error

Schemas​

Application​

Type: object

4 properties
NameTypeRequiredDescription
idstringYes

Unique ID of the application.

subjectstringYes

Username of the logged in user for the application.

appNamestringYes

Name of the application.

appIdstringYes

ID of the application.

Session​

Type: object

8 properties
NameTypeRequiredDescription
userIdstring

ID of the user of the session.

idpNamestring

Identity provider name that the session authenticated. Will only be returned for federated authentication sessions.

applicationsarray of Application

List of applications in the session.

userAgentstring

User agent of the session.

ipstring

IP address of the session.

loginTimestring

Login time of the session.

lastAccessTimestring

Last access time of the session.

idstring

ID of the session.

Sessions​

Type: object

2 properties
NameTypeRequiredDescription
userIdstring
sessionsarray of Session

List of active sessions.

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestringYes
messagestringYes
descriptionstring
traceIdstring

Was this page helpful?