Sessions are used to maintain access to CDF resources for an extended period of time. The methods available to extend a sessions lifetime are client credentials and token exchange. Sessions depend on the project OIDC configuration and may become invalid in the following cases
Project OIDC configuration has been updated through the update project endpoint. This action invalidates all of the project's sessions.
The session was invalidated through the identity provider.
Required capabilities:
sessionsAcl:LIST
List all sessions in the current project.
A list of sessions in the current project.
The response for a failed request.
{- "items": [
- {
- "id": 0,
- "type": "CLIENT_CREDENTIALS",
- "status": "READY",
- "creationTime": 1730204346000,
- "expirationTime": 1730204346000,
- "clientId": "string"
}
], - "nextCursor": "string",
- "previousCursor": "string"
}Required capabilities:
sessionsAcl:CREATE
Create sessions
A request containing the information needed to create a session.
Array of CreateSessionWithClientCredentialsRequest (object) or CreateSessionWithTokenExchangeRequest (object) or CreateSessionWithOneshotTokenExchangeRequest (object) (CreateSessionRequest) = 1 items |
List of session creation related information
The response for a failed request.
{- "items": [
- {
- "clientId": "string",
- "clientSecret": "string"
}
]
}{- "items": [
- {
- "id": 0,
- "type": "CLIENT_CREDENTIALS",
- "status": "READY",
- "nonce": "string",
- "clientId": "string"
}
]
}Required capabilities:
sessionsAcl:LIST
Retrieves sessions with given IDs. The request will fail if any of the IDs does not belong to an existing session.
List of session IDs to retrieve
required | Array of objects [ 1 .. 1000 ] items |
A list of sessions with the given ids
The response for a failed request.
{- "items": [
- {
- "id": 1
}
]
}{- "items": [
- {
- "id": 105049194919491,
- "type": "TOKEN_EXCHANGE",
- "status": "ACTIVE",
- "creationTime": 1638795559528,
- "expirationTime": 1638795559628
}
]
}Required capabilities:
sessionsAcl:DELETE
Revoke access to a session. Revocation is idempotent. Revocation of a session may in some cases take up to 1 hour to take effect.
A request containing the information needed to revoke sessions.
Array of objects (RevokeSessionRequest) non-empty |
List of revoked sessions.
If the user does not have the sessionsAcl:LIST capability, then only the session IDs will be present in the response.
The response for a failed request.
{- "items": [
- {
- "id": 0
}
]
}{- "items": [
- {
- "id": 0,
- "type": "CLIENT_CREDENTIALS",
- "status": "REVOKED",
- "creationTime": 1638795554528,
- "expirationTime": 1638795554528,
- "clientId": "client-123"
}
]
}