/auth/api/v1/sessionstorage/users/{user_id}/sessions
Fetch valid user sessions.
offset
int
Offset from which to start fetching objects
limit
int
Maximum number of objects to return
sortdir
string
Sorting direction
sortkey
string
Sorting key
Successful response, returns valid user sessions.
{
"count": 1,
"items": [
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"user_id": "5bf77342-221c-11ee-be56-0242ac120002",
"source_id": "5bf77342-221c-11ee-be56-0242ac120002",
"parent_session_id": "",
"domain": "privx-ui",
"username": "alice",
"remote_addr": "127.0.0.1",
"user_agent": "Mozilla....",
"type": "login",
"created": "2022-01-01T09:17:16Z",
"updated": "2022-01-01T09:17:16Z",
"expires": "2022-01-01T09:17:16Z",
"token_expires": "2022-01-01T09:17:16Z",
"logged_out": false,
"current": false
}
]
}
/auth/api/v1/sessionstorage/users/current/sessions
Fetch current users valid sessions.
offset
int
Offset from which to start fetching objects
limit
int
Maximum number of objects to return
sortdir
string
Sorting direction
sortkey
string
Sorting key
Successful response, returns current users valid sessions.
{
"count": 1,
"items": [
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"user_id": "5bf77342-221c-11ee-be56-0242ac120002",
"source_id": "5bf77342-221c-11ee-be56-0242ac120002",
"parent_session_id": "",
"domain": "privx-ui",
"username": "alice",
"remote_addr": "127.0.0.1",
"user_agent": "Mozilla....",
"type": "login",
"created": "2022-01-01T09:17:16Z",
"updated": "2022-01-01T09:17:16Z",
"expires": "2022-01-01T09:17:16Z",
"token_expires": "2022-01-01T09:17:16Z",
"logged_out": false,
"current": false
}
]
}
/auth/api/v1/sessionstorage/sources/{source_id}/sessions
Fetch valid source sessions.
offset
int
Offset from which to start fetching objects
limit
int
Maximum number of objects to return
sortdir
string
Sorting direction
sortkey
string
Sorting key
Successful response, returns current users valid sessions.
{
"count": 1,
"items": [
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"user_id": "5bf77342-221c-11ee-be56-0242ac120002",
"source_id": "5bf77342-221c-11ee-be56-0242ac120002",
"parent_session_id": "",
"domain": "privx-ui",
"username": "alice",
"remote_addr": "127.0.0.1",
"user_agent": "Mozilla....",
"type": "login",
"created": "2022-01-01T09:17:16Z",
"updated": "2022-01-01T09:17:16Z",
"expires": "2022-01-01T09:17:16Z",
"token_expires": "2022-01-01T09:17:16Z",
"logged_out": false,
"current": false
}
]
}
/auth/api/v1/sessionstorage/sessions/search
Search for sessions
keywords
string
Keywords string which is separated by a comma
user_id
string
The ID of the user the sessions belong to
type
string
Type of session, login or sso
{
"keywords": "alice, 127.0.0.1, Mozilla/3.0",
"user_id": "5bf77342-221c-11ee-be56-0242ac120002",
"type": "login"
}
Successful response, returns valid sessions.
{
"count": 1,
"items": [
{
"id": "5bf77342-221c-11ee-be56-0242ac120002",
"user_id": "5bf77342-221c-11ee-be56-0242ac120002",
"source_id": "5bf77342-221c-11ee-be56-0242ac120002",
"parent_session_id": "",
"domain": "privx-ui",
"username": "alice",
"remote_addr": "127.0.0.1",
"user_agent": "Mozilla....",
"type": "login",
"created": "2022-01-01T09:17:16Z",
"updated": "2022-01-01T09:17:16Z",
"expires": "2022-01-01T09:17:16Z",
"token_expires": "2022-01-01T09:17:16Z",
"logged_out": false,
"current": false
}
]
}
/auth/api/v1/sessionstorage/sessions/{session_id}/terminate
Terminate signle session by ID
session_id
string
required
Session ID
Successful response.
Empty response
/auth/api/v1/sessionstorage/users/{user_id}/sessions/terminate
Terminate all user sessions
user_id
string
required
User ID
Successful response.
Empty response
/auth/api/v1/sessionstorage/users/current/sessions/{session_id}/terminate
Terminate currents user session by ID
session_id
string
required
Session ID
Successful response.
Empty response
/auth/api/v1/sessionstorage/users/current/sessionpassword
Get session password
oauth
Required Scopes:
user
Get session password
All Scopes
admin
· Admin scope - used for built-in SSH PrivX admin accountservice
· Microservice scope - used for communication between SSH PrivX microservicesuser
· Normal usersusersManage
· Clients with users-manage scopeusersView
· Clients with users-view scopeSuccessful response.
{
"password": "y~X4x4P%F)="
}
Was this page helpful?