Exchange SSO token
Exchange an OpenID Connect ID token or access token for an Ocient database access token.
This endpoint allows clients to directly exchange tokens without going through the full browser-based authentication flow. This is useful for server-to-server scenarios or when the client already has a valid OpenID token from another flow.
Example
Request
This endpoint expects any.
OR
Response
Token exchange successful
access_token
Access token for subsequent API calls. This token should be included in the
Authorization header for all authenticated requests using the format:
Authorization: Bearer {token}.
status
Status information about the login operation. A successful login will have a SQL state of "00000".
username
The authenticated user's username. This is useful for displaying in UIs or for audit logging purposes.
database
The database that was authenticated against. This is the default database for subsequent queries if none is specified.
expires_in
Number of seconds until the access token expires. Clients should refresh the token before this time to maintain uninterrupted access.
Errors
401
Unauthorized Error

