OAuth2 / OIDC API
OAuth 2.0 and OpenID Connect protocol endpoints. Covers authorization, token issuance, token introspection, pushed authorization requests, dynamic client registration, JWKS, and the OIDC UserInfo endpoint.
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:8090/oauth2/token, authorization URL https://localhost:8090/oauth2/authorize
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
Authorization
OAuth 2.0 authorization endpoint and flow-engine callback.
Authorization endpoint
GET /oauth2/authorize
Initiates an OAuth 2.0 / OIDC authorization flow. On success, redirects the user-agent
to the login page. On error, redirects to the client's registered redirect_uri or the
server error page. When request_uri is provided (PAR), the stored parameters are used
instead of the inline query parameters.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
response_type | query | string | Yes | Must be Allowed values: |
response_mode | query | string | OAuth 2.0 response mode. When omitted, query mode is used by default. Only query mode is supported. Requests with unsupported values such as fragment or form_post are rejected with invalid_request. Allowed values: | |
client_id | query | string | Yes | The client identifier. |
redirect_uri | query | string | The URI to redirect to after authorization. | |
scope | query | string | Space-separated list of requested scopes. | |
state | query | string | Opaque value to maintain state between the request and callback. | |
nonce | query | string | String value used to associate a client session with an ID token. | |
code_challenge | query | string | PKCE code challenge (RFC 7636). | |
code_challenge_method | query | string | PKCE code challenge method. Allowed values: | |
request_uri | query | string | Reference URI to a pushed authorization request (RFC 9126). | |
resource | query | string | Resource indicator per RFC 8707 (absolute URI, no fragment). Only one value is supported; requests with multiple resource values are rejected with invalid_target. When omitted from a request carrying permission scopes or authorization details, the configured defaultResourceServer is used. OIDC-only and scopeless requests use the client_id audience. | |
authorization_details | query | string | RFC 9396 authorization details: a JSON array of objects, each naming a registered | |
acr_values | query | string | Requested Authentication Context Class Reference values. | |
claims | query | string | JSON-encoded claims request (OIDC Core §5.5). | |
prompt | query | string | Space-separated list of prompts (OIDC Core §3.1.2.1). Supported values: |
Responses
| Code | Description | Schema |
|---|---|---|
302 | Redirect to the login page or the client redirect_uri on error. | |
400 | Bad Request — malformed or duplicate query parameters. | OAuthError |
Authorization endpoint for an organization unit
GET /ou/{ouId}/oauth2/authorize
The authorization endpoint with the sign-in bounded to the organization unit in the path:
the user signs in to that organization unit, and the application must be accessible from it.
Takes the same query parameters and answers as /oauth2/authorize. Served only when the
deployment enables organization-unit-qualified endpoints.
An organization unit the application is not accessible from, and one that does not exist,
are both redirected to the client with the same unauthorized_client error, so the answer
does not reveal which organization units exist.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
ouId | path | string | Yes | Identifier of the organization unit to sign in to. |
response_type | query | string | Yes | Must be Allowed values: |
response_mode | query | string | OAuth 2.0 response mode. When omitted, query mode is used by default. Only query mode is supported. Requests with unsupported values such as fragment or form_post are rejected with invalid_request. Allowed values: | |
client_id | query | string | Yes | The client identifier. |
redirect_uri | query | string | The URI to redirect to after authorization. | |
scope | query | string | Space-separated list of requested scopes. | |
state | query | string | Opaque value to maintain state between the request and callback. | |
nonce | query | string | String value used to associate a client session with an ID token. | |
code_challenge | query | string | PKCE code challenge (RFC 7636). | |
code_challenge_method | query | string | PKCE code challenge method. Allowed values: | |
request_uri | query | string | Reference URI to a pushed authorization request (RFC 9126). | |
resource | query | string | Resource indicator per RFC 8707 (absolute URI, no fragment). Only one value is supported; requests with multiple resource values are rejected with invalid_target. When omitted from a request carrying permission scopes or authorization details, the configured defaultResourceServer is used. OIDC-only and scopeless requests use the client_id audience. | |
authorization_details | query | string | RFC 9396 authorization details: a JSON array of objects, each naming a registered | |
acr_values | query | string | Requested Authentication Context Class Reference values. | |
claims | query | string | JSON-encoded claims request (OIDC Core §5.5). | |
prompt | query | string | Space-separated list of prompts (OIDC Core §3.1.2.1). Supported values: |
Responses
| Code | Description | Schema |
|---|---|---|
302 | Redirect to the login page, or to the client redirect_uri on error, including an organization unit the application is not accessible from or that does not exist. | |
400 | Bad Request: malformed or duplicate query parameters, or a blank organization unit ( | OAuthError |
Authorization callback
POST /oauth2/auth/callback
Internal endpoint invoked by the Gate after a flow terminates. It submits the flow's signed
assertion JWT, which this endpoint validates before acting on it. A completed flow yields an
authentication assertion and an authorization code is issued (or, for CIBA and Device Code,
the associated request is updated). The CIBA and Device Code callbacks return {"status":"OK"}
on success. A terminally failed flow yields an error assertion instead and the
failure is propagated to the waiting request (authorization code: an error redirect; CIBA and
Device Code: the request is denied or marked failed). The two assertion outcomes are
distinguished by the assertion's own claims, so callers submit both in the same field.
The caller also posts, in sessionData, the SSO sessions the flow's responses returned, from
every response of the flow and not only the last one. When the authorization request asked for
the device_sso scope, the code keeps the posted sessions, up to ten, and the code exchange
returns them in device_secret. They are kept as posted; a token exchange that presents them
checks they are the user's. An entry with a missing field, or a field longer than 128
characters, is ignored and does not fail the sign-in. The request body is limited to 1 MiB.
Request body (required): application/json
Schema: AuthCallbackRequest
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
authId | string | Yes | The authorization session identifier returned by the flow engine. |
assertion | string | Yes | Signed JWT assertion from the flow engine carrying the terminal flow outcome. A completed flow returns an authentication assertion (relay the flow response's assertion field); a terminally failed flow returns an error assertion carrying the flow error type and description (relay the flow response's errorAssertion field). The server validates the signature and the binding to this authorization request before acting, and tells the two apart by the assertion's own claims. |
type | string | OAuth grant type of the request. Defaults to the authorization code flow when absent. Allowed values: | |
sessionData | array of object | The SSO sessions the flow's responses returned, as the flow execution API's |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Authorization code callbacks return a redirect_uri including the code and state. CIBA and Device Code callbacks return a status response after updating the associated request. | one of: AuthCallbackResponse, FlowCallbackStatusResponse |
400 | Bad Request, a body that is not JSON or is over 1 MiB, or a missing authId or assertion. | OAuthError |
Device Authorization
OAuth 2.0 Device Authorization Grant endpoints per RFC 8628.
Device authorization endpoint
POST /oauth2/device-authorize
Starts an OAuth 2.0 Device Authorization Grant request as defined by RFC 8628. The client receives a device code for token polling and a user code that the user enters at the verification URI. The client must be configured to use the Device Code grant.
Confidential clients authenticate using their configured token endpoint authentication
method. Public clients identify themselves with client_id.
Request body (required): application/x-www-form-urlencoded
Schema: DeviceAuthorizationRequest
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
client_id | string | The client identifier, required when it is not supplied through client authentication. | |
client_secret | string | The client secret for confidential clients using form-based authentication. | |
scope | string | Space-separated list of requested scopes. | |
resource | array of string (uri) | Resource indicator per RFC 8707. ThunderID supports one resource value; multiple values are rejected with invalid_target. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Device authorization request accepted. | DeviceAuthorizationResponse |
400 | Bad Request — invalid_request, invalid_target, or unauthorized_client. | OAuthError |
401 | Unauthorized — client authentication failed. | OAuthError |
500 | Internal server error — the device authorization request could not be created. | OAuthError |
Token
OAuth 2.0 token endpoint for issuing access tokens, refresh tokens, and ID tokens.
Token endpoint
POST /oauth2/token
Issues access tokens, refresh tokens, and ID tokens. Supports the following grant types:
authorization_code, client_credentials, refresh_token,
urn:openid:params:grant-type:ciba (CIBA Core 1.0),
urn:ietf:params:oauth:grant-type:token-exchange (RFC 8693), and
urn:ietf:params:oauth:grant-type:jwt-bearer (draft-ietf-oauth-identity-assertion-authz-grant),
and urn:ietf:params:oauth:grant-type:device_code (RFC 8628).
Confidential clients authenticate with HTTP Basic auth, client_id/client_secret form
parameters, or a private_key_jwt client assertion; a public client sends only client_id.
An access token issued for a user through the authorization_code, urn:openid:params:grant-type:ciba or urn:ietf:params:oauth:grant-type:jwt-bearer grant keeps that user in sub and adds an on-behalf-of act claim naming the client that obtained it. Token exchange adds the same claim when no actor_token is given, and a refreshed access token keeps the claim its refresh token was issued with. Agent clients always receive the claim; application clients receive it when includeActClaim is enabled on the client. The act.sub value is the agent or application resource id rather than the client id, and the claim is present on the access token only, never on the ID token.
Token exchange additionally supports requesting an Identity Assertion Authorization Grant (ID-JAG) by setting requested_token_type to urn:ietf:params:oauth:token-type:id-jag, with subject_token_type set to urn:ietf:params:oauth:token-type:id_token and a single required audience value matching one of the client's configured allowedAudiences. The resource parameter is optional and, when present, is embedded in the issued ID-JAG for the resource authorization server to process. The ID-JAG also carries the subject ID token's claims that the client's token.idToken.userAttributes lists, except roles, groups, and the claims the ID-JAG defines itself. Requires the client to be confidential and to have ID-JAG issuance enabled (token.idJag.enabled) on its OAuth configuration. The response has issued_token_type=urn:ietf:params:oauth:token-type:id-jag and token_type=N_A, since the issued value is a JWT authorization grant rather than an access token.
Token exchange also signs a user in to another application with an SSO session they already hold (back-channel SSO). The subject_token is the device_secret a code exchange returned, with subject_token_type set to urn:ietf:params:oauth:token-type:jwt; its sso-session+jwt type header selects this path. The calling client's authentication flow runs silently on the session it carries for that client's login flow, as prompt=none does at the authorization endpoint, so it only succeeds for a client whose login flow is one of the sessions'. The response carries the tokens the authorization code grant would give: an access token, an ID token when openid is in scope, and a refresh token when the client allows the refresh_token grant; all belong to the same session. scope and a single resource select what is requested, actor_token is not accepted, and requested_token_type may only be an access token. Public clients may use it. A flow that cannot complete without the user, or a session that has ended or belongs to another flow, is answered with interaction_required; a session of another user than the device secret's sub with invalid_grant. For a shared application, a flow that decides no organization unit before it reuses the session follows the one the user last signed in to with that session, when the user can sign in to the application there; otherwise the flow needs the user, and the exchange is answered with interaction_required. A sign-in the organization unit boundary refuses, because the flow decided no organization unit or the user is not in the one it decided, is also answered with invalid_grant, with the description The subject cannot sign in to this application. The same exchange on /ou/{ouId}/oauth2/token signs the user in to that organization unit.
The urn:ietf:params:oauth:grant-type:jwt-bearer grant presents an ID-JAG assertion (obtained from a trusted external IdP) via the required assertion parameter, and exchanges it for a ThunderID access token. Optional scope and resource parameters further narrow the granted scopes and audience; resource must be a subset of the assertion's own resource claim when the assertion carries one. No refresh token is issued for this grant.
Request body (required): application/x-www-form-urlencoded
Schema: TokenRequest
19 properties
| Name | Type | Required | Description |
|---|---|---|---|
grant_type | string | Yes | The OAuth 2.0 grant type. Allowed values: |
client_id | string | The client identifier (required when not using HTTP Basic auth). | |
client_secret | string | The client secret (required for confidential clients not using HTTP Basic auth). | |
code | string | The authorization code (required for authorization_code grant). | |
redirect_uri | string | Must match the redirect_uri used in the authorization request. | |
code_verifier | string | PKCE code verifier (RFC 7636). | |
scope | string | Space-separated list of requested scopes. | |
refresh_token | string | The refresh token (required for refresh_token grant). | |
subject_token | string | The subject token for token exchange (RFC 8693). | |
subject_token_type | string | The type URI of the subject token. A device secret ( | |
actor_token | string | The actor token for token exchange (RFC 8693). | |
actor_token_type | string | The type URI of the actor token. | |
requested_token_type | string | The desired type of the issued token (token exchange only). Set to | |
audience | string | Accepted for RFC 8693 token-exchange compatibility; it does not determine the issued access token's aud claim (use resource to select the token audience). Required, and limited to exactly one value, when requesting an ID-JAG ( | |
resource | string | Resource indicator (RFC 8707). For access-token issuance, binds the issued access token to exactly one resource server. When omitted from a request carrying permission scopes or authorization details, the configured defaultResourceServer is used, and if neither is available the request is rejected with invalid_target. OIDC-only and scopeless requests use the client_id audience. Optional for ID-JAG requests, where it is embedded in the issued ID-JAG's | |
assertion | string | ID-JAG assertion JWT issued by a trusted external IdP (draft-ietf-oauth-identity-assertion-authz-grant). Required for the | |
auth_req_id | string | The backchannel authentication request identifier returned by /oauth2/bc-authorize. Required for the | |
authorization_details | string | RFC 9396 authorization details as a JSON array. On the | |
device_code | string | The device code returned by /oauth2/device-authorize. Required for the |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Token issued successfully. | TokenResponse |
400 | Bad Request — invalid grant, missing parameters, unsupported grant type; or interaction_required when a device secret cannot sign the user in without them, or a Device Code polling response such as authorization_pending, slow_down, access_denied, or expired_token. | OAuthError |
401 | Unauthorized — client authentication failed. | OAuthError |
Token endpoint for an organization unit
POST /ou/{ouId}/oauth2/token
The token endpoint acting for the organization unit in the path. Served only when the deployment enables organization-unit-qualified endpoints. The client authenticates as on /oauth2/token and must be accessible from the organization unit. An organization unit the client is not accessible from, and one that does not exist, are both answered with the same unauthorized_client error, so the answer does not reveal which organization units exist.
Three grants act for an organization unit, with the same request parameters as on /oauth2/token:
client_credentialsissues the client a token for the organization unit.authorization_coderedeems a code whose sign-in landed in the organization unit, such as one issued through/ou/{ouId}/oauth2/authorize. The sign-in records its organization unit only when the client's token configuration asks for theouIdattribute, so a code without it, or one for another organization unit, is answered withinvalid_grantand the descriptionThe authorization code was not issued for the requested organization unit./oauth2/tokenredeems either code.urn:ietf:params:oauth:grant-type:token-exchangewith a device secret as thesubject_token(subject_token_typeurn:ietf:params:oauth:token-type:jwtand thesso-session+jwttype header) signs the user in to the organization unit. The client's authentication flow runs silently on the session, as it does on/oauth2/token, with the sign-in bounded to the organization unit: theouIdclaim the tokens carry is the organization unit's, and the roles and permissions are those assigned there. A user who cannot sign in to the organization unit is answered withinvalid_grant.
Every other grant, and a token exchange whose subject token is not a device secret, is refused with invalid_request.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
ouId | path | string | Yes | Identifier of the organization unit the request acts for. |
Request body (required): application/x-www-form-urlencoded
Schema: TokenRequest
19 properties
| Name | Type | Required | Description |
|---|---|---|---|
grant_type | string | Yes | The OAuth 2.0 grant type. Allowed values: |
client_id | string | The client identifier (required when not using HTTP Basic auth). | |
client_secret | string | The client secret (required for confidential clients not using HTTP Basic auth). | |
code | string | The authorization code (required for authorization_code grant). | |
redirect_uri | string | Must match the redirect_uri used in the authorization request. | |
code_verifier | string | PKCE code verifier (RFC 7636). | |
scope | string | Space-separated list of requested scopes. | |
refresh_token | string | The refresh token (required for refresh_token grant). | |
subject_token | string | The subject token for token exchange (RFC 8693). | |
subject_token_type | string | The type URI of the subject token. A device secret ( | |
actor_token | string | The actor token for token exchange (RFC 8693). | |
actor_token_type | string | The type URI of the actor token. | |
requested_token_type | string | The desired type of the issued token (token exchange only). Set to | |
audience | string | Accepted for RFC 8693 token-exchange compatibility; it does not determine the issued access token's aud claim (use resource to select the token audience). Required, and limited to exactly one value, when requesting an ID-JAG ( | |
resource | string | Resource indicator (RFC 8707). For access-token issuance, binds the issued access token to exactly one resource server. When omitted from a request carrying permission scopes or authorization details, the configured defaultResourceServer is used, and if neither is available the request is rejected with invalid_target. OIDC-only and scopeless requests use the client_id audience. Optional for ID-JAG requests, where it is embedded in the issued ID-JAG's | |
assertion | string | ID-JAG assertion JWT issued by a trusted external IdP (draft-ietf-oauth-identity-assertion-authz-grant). Required for the | |
auth_req_id | string | The backchannel authentication request identifier returned by /oauth2/bc-authorize. Required for the | |
authorization_details | string | RFC 9396 authorization details as a JSON array. On the | |
device_code | string | The device code returned by /oauth2/device-authorize. Required for the |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Token issued successfully. | TokenResponse |
400 | Bad Request: a grant the organization unit endpoint does not serve ( | OAuthError |
401 | Unauthorized: client authentication failed. | OAuthError |
Introspection
Token introspection per RFC 7662.
Token introspection endpoint
POST /oauth2/introspect
Returns metadata about a token. If the token is invalid, expired, or revoked, the
response will contain "active": false with no other fields. Implements RFC 7662.
Requires client authentication.
Request body (required): application/x-www-form-urlencoded
Schema: IntrospectRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
token | string | Yes | The token to introspect. |
token_type_hint | string | Hint about the type of the submitted token. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Introspection result (active or inactive token). | IntrospectResponse |
400 | Bad Request — token parameter is missing. | OAuthError |
401 | Unauthorized — client authentication failed. | OAuthError |
Revocation
Token revocation per RFC 7009.
Token revocation endpoint
POST /oauth2/revoke
Revokes a previously issued access or refresh token. On success the server responds with HTTP 200 and an empty body. A token that cannot be validated — bad signature, malformed, or unknown — is treated as a successful no-op per RFC 7009. Expired tokens with a valid signature remain revocable. Requires client authentication; a client may only revoke tokens issued to it. Implements RFC 7009.
Request body (required): application/x-www-form-urlencoded
Schema: RevokeRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
token | string | Yes | The access or refresh token to revoke. |
token_type_hint | string | Hint about the type of the submitted token ( |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Token revoked, or a no-op success for a token that cannot be validated. Empty body. | |
400 | Bad Request — the token parameter is missing ( | OAuthError |
401 | Unauthorized — client authentication failed. | OAuthError |
500 | Internal server error — the revocation could not be recorded, for example when the runtime persistent database is unavailable. | OAuthError |
PAR
Pushed Authorization Requests per RFC 9126.
Pushed Authorization Request endpoint
POST /oauth2/par
Accepts authorization request parameters and stores them server-side, returning a
request_uri that can be passed to the authorization endpoint. Implements RFC 9126.
Requires client authentication.
Request body (required): application/x-www-form-urlencoded
Schema: PARRequest
13 properties
| Name | Type | Required | Description |
|---|---|---|---|
response_type | string | Yes | Allowed values: |
client_id | string | Yes | |
redirect_uri | string | ||
scope | string | ||
state | string | ||
nonce | string | ||
code_challenge | string | ||
code_challenge_method | string | Allowed values: | |
resource | string | Resource indicator per RFC 8707 (absolute URI). Only one value is supported; multiple resource values are rejected with invalid_target. | |
authorization_details | string | RFC 9396 authorization details: a JSON array of objects, each naming a registered | |
acr_values | string | ||
claims | string | ||
prompt | string | Space-separated list of prompts (OIDC Core §3.1.2.1). Supported values: |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Authorization request accepted and stored. | PARResponse |
400 | Bad Request — invalid parameters. | OAuthError |
401 | Unauthorized — client authentication failed. | OAuthError |
JWKS
JSON Web Key Set endpoint for token verification.
JSON Web Key Set
GET /oauth2/jwks
Returns the server's public keys in JWKS format for verifying signed tokens.
Responses
| Code | Description | Schema |
|---|---|---|
200 | JWKS retrieved successfully. | JWKSResponse |
500 | Internal server error — JWKS could not be retrieved. | OAuthError |
Authorization Details Types
Request view of the RFC 9396 authorization details types the server supports.
List authorization details types
GET /oauth2/authorization-details-types
Returns the request view of every registered RFC 9396 authorization details type: the fields a client may send, with their constraints, and the changes it may make to a granted detail at the token endpoint. Processor, consent and reuse settings, the user and processor rules, and internal identifiers are never returned. Public and read-only, advertised in discovery as authorization_details_types_endpoint, and not served when oauth.authorization_details.type_metadata_enabled is false.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
If-None-Match | header | string | An ETag from an earlier response; the server answers |
Responses
| Code | Description | Schema |
|---|---|---|
200 | The request view of every registered type. | AuthorizationDetailsTypesResponse |
304 | The content matches the | |
500 | Internal server error. | Error |
Get an authorization details type
GET /oauth2/authorization-details-types/{type}
Returns the request view of one registered type.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
type | path | string | Yes | The type value, URL-encoded since it may be a URI. |
If-None-Match | header | string | An ETag from an earlier response; the server answers |
Responses
| Code | Description | Schema |
|---|---|---|
200 | The request view of the type. | AuthorizationDetailsTypeMetadata |
304 | The content matches the | |
404 | No type is registered under the value. | Error |
500 | Internal server error. | Error |
UserInfo
OIDC UserInfo endpoint for retrieving claims about the authenticated user.
UserInfo endpoint (GET)
GET /oauth2/userinfo
Returns claims about the authenticated end-user. The access token must be sent in the
Authorization: Bearer <token> header. The response is a JSON object or a signed/encrypted
JWT depending on the client's registration settings. Implements OIDC Core §5.3.
Responses
| Code | Description | Schema |
|---|---|---|
200 | UserInfo claims returned successfully. | UserInfoResponse |
401 | Unauthorized — missing or invalid Bearer token. | |
403 | Forbidden — token scope is insufficient. | |
500 | Internal server error — the request could not be processed, for example when the token's application cannot be read. | OAuthError |
UserInfo endpoint (POST)
POST /oauth2/userinfo
Identical to the GET variant but accepts the access token via HTTP POST body or
Authorization header per OIDC Core §5.3.2.
Responses
| Code | Description | Schema |
|---|---|---|
200 | UserInfo claims returned successfully. | UserInfoResponse |
401 | Unauthorized — missing or invalid Bearer token. | |
403 | Forbidden — token scope is insufficient. | |
500 | Internal server error — the request could not be processed, for example when the token's application cannot be read. | OAuthError |
DCR
Dynamic Client Registration per RFC 7591.
Dynamic Client Registration
POST /oauth2/dcr/register
Registers a new OAuth 2.0 / OIDC client. When DCR is not configured as insecure, a valid access token with system-level permissions is required. Implements RFC 7591.
Request body (required): application/json
Schema: DCRRegistrationRequest
23 properties
| Name | Type | Required | Description |
|---|---|---|---|
ou_id | string | Organization Unit ID to associate the client with. | |
redirect_uris | array of string | Yes | Registered redirect URIs. |
post_logout_redirect_uris | array of string | Allowed post-logout redirect URIs for RP-Initiated Logout. | |
backchannel_logout_uri | string | OIDC Back-Channel Logout endpoint. An absolute http or https URL without userinfo, a fragment or a wildcard; public clients must use https. | |
grant_types | array of string | Allowed values: | |
response_types | array of string | Allowed values: | |
client_name | string | ||
client_uri | string | ||
logo_uri | string | ||
token_endpoint_auth_method | string | Allowed values: | |
jwks_uri | string | ||
jwks | object | ||
scope | string | ||
contacts | array of string | ||
tos_uri | string | ||
policy_uri | string | ||
require_pushed_authorization_requests | boolean | ||
userinfo_signed_response_alg | string | ||
userinfo_encrypted_response_alg | string | ||
userinfo_encrypted_response_enc | string | ||
id_token_signed_response_alg | string | ||
id_token_encrypted_response_alg | string | ||
id_token_encrypted_response_enc | string |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Client registered successfully. | DCRRegistrationResponse |
400 | Bad Request — invalid registration parameters. | OAuthError |
401 | Unauthorized — missing or insufficient access token (when DCR is not insecure). | OAuthError |
Read Client Registration
GET /oauth2/dcr/register/{client_id}
Returns the current registration of a dynamically registered client. Implements RFC 7592.
The request must be made by a caller holding system-level permissions, presenting its access token as a Bearer token.
The client_secret is not returned: it is stored write-only and cannot be read back after
registration.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
client_id | path | string | Yes | Identifier of the client registration to manage. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Current client registration. | DCRRegistrationResponse |
401 | Unauthorized, the caller does not hold the required system-level permission. | OAuthError |
404 | Not Found — no such client registration. | OAuthError |
Update Client Registration
PUT /oauth2/dcr/register/{client_id}
Replaces the registered metadata of a dynamically registered client, preserving its
client_id and client_secret. Implements RFC 7592.
The request must be made by a caller holding system-level permissions, presenting its access token as a Bearer token.
The update is a full replacement of the client metadata: omitted fields are not retained.
The server-managed field client_secret_expires_at is ignored if supplied. The body must include client_id, and it must match the client being updated.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
client_id | path | string | Yes | Identifier of the client registration to manage. |
Request body (required): application/json
Schema: DCRUpdateRequest
25 properties
| Name | Type | Required | Description |
|---|---|---|---|
ou_id | string | Organization Unit ID to associate the client with. | |
redirect_uris | array of string | Yes | Registered redirect URIs. |
post_logout_redirect_uris | array of string | Allowed post-logout redirect URIs for RP-Initiated Logout. | |
backchannel_logout_uri | string | OIDC Back-Channel Logout endpoint. An absolute http or https URL without userinfo, a fragment or a wildcard; public clients must use https. | |
grant_types | array of string | Allowed values: | |
response_types | array of string | Allowed values: | |
client_name | string | ||
client_uri | string | ||
logo_uri | string | ||
token_endpoint_auth_method | string | Allowed values: | |
jwks_uri | string | ||
jwks | object | ||
scope | string | ||
contacts | array of string | ||
tos_uri | string | ||
policy_uri | string | ||
require_pushed_authorization_requests | boolean | ||
userinfo_signed_response_alg | string | ||
userinfo_encrypted_response_alg | string | ||
userinfo_encrypted_response_enc | string | ||
id_token_signed_response_alg | string | ||
id_token_encrypted_response_alg | string | ||
id_token_encrypted_response_enc | string | ||
client_id | string | Yes | Identifier of the client being updated. Required, and it must match the client in the request path: a request that omits it, or that names a different client, is rejected. |
client_secret | string | Optional. When present it must match the client's currently issued secret, otherwise the request is rejected. The value is only verified, never written: a client cannot choose its own secret. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Updated client registration. | DCRRegistrationResponse |
400 | Bad Request — invalid client metadata. | OAuthError |
401 | Unauthorized, the caller does not hold the required system-level permission. | OAuthError |
404 | Not Found — no such client registration. | OAuthError |
Delete Client Registration
DEL /oauth2/dcr/register/{client_id}
Deletes a dynamically registered client. Implements RFC 7592.
The request must be made by a caller holding system-level permissions, presenting its access token as a Bearer token.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
client_id | path | string | Yes | Identifier of the client registration to manage. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Client registration deleted. | |
401 | Unauthorized, the caller does not hold the required system-level permission. | OAuthError |
404 | Not Found — no such client registration. | OAuthError |
Backchannel Authentication
OpenID Connect Client-Initiated Backchannel Authentication (CIBA) endpoint.
Backchannel authentication endpoint
POST /oauth2/bc-authorize
Initiates an OpenID Connect Client-Initiated Backchannel Authentication (CIBA) request in
poll mode. The client identifies the user with exactly one of login_hint or id_token_hint
(login_hint_token is defined by the specification but not supported and is rejected with
invalid_request), and the server begins an out-of-band authentication ceremony. The returned
auth_req_id is polled at the token endpoint using the urn:openid:params:grant-type:ciba
grant. Requires client authentication.
RFC 8707 resource indicators bind the request to a single resource server before user
authorization. A valid resource binds the request to that resource server; when omitted from
a request carrying permission scopes or authorization details the configured
defaultResourceServer is used, and such a request with no resource and no default is
rejected with invalid_target.
OIDC-only requests without a resource remain valid and keep the client_id audience. Multiple
resource values, including duplicates, are rejected with invalid_target. The resulting
access token has the bound resource server identifier as its sole aud, and its permissions
are limited to those defined by that resource server. A resource optionally supplied when
polling the token endpoint must exactly match the bound resource server.
RFC 9396 authorization_details may be sent here, as RFC 9396 section 3 allows for
backchannel authentication requests. See the authorization_details field.
Request body (required): application/x-www-form-urlencoded
Schema: BackchannelAuthRequest
11 properties
| Name | Type | Required | Description |
|---|---|---|---|
client_id | string | The client identifier (required when not using HTTP Basic auth). | |
client_secret | string | The client secret (required for confidential clients not using HTTP Basic auth). | |
login_hint | string | A hint identifying the user to authenticate. Exactly one of login_hint or id_token_hint must be provided. | |
id_token_hint | string | A previously issued ID token identifying the user. Exactly one of login_hint or id_token_hint must be provided. | |
login_hint_token | string | Defined by the CIBA specification but not supported; requests including it are rejected with invalid_request. Use login_hint instead. | |
scope | string | Yes | Space-separated scopes. Must include |
resource | string | Resource indicator per RFC 8707 (absolute URI, no fragment). Only one value is supported; requests with multiple resource values, including duplicates, are rejected with invalid_target. When omitted from a request carrying permission scopes or authorization details, the configured defaultResourceServer is used; such a request with no resource and no default is rejected with invalid_target. OIDC-only requests use the client_id audience. | |
binding_message | string | Optional human-readable message shown to the user in the authentication notification (CIBA Core 1.0 §7.1). Limited to 256 printable characters. | |
requested_expiry | integer | Requested lifetime of the auth_req_id in seconds. Clamped to the server maximum. | |
acr_values | string | Space-separated list of requested Authentication Context Class Reference values. | |
authorization_details | string | RFC 9396 authorization details: a JSON array of objects, each naming a registered |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Backchannel authentication request accepted. | BackchannelAuthResponse |
400 | Bad Request — invalid_request, invalid_scope, invalid_target, unknown_user_id, invalid_binding_message, invalid_authorization_details, or unauthorized_client. | OAuthError |
401 | Unauthorized — client authentication failed. | OAuthError |
Schemas
AuthorizationDetailsTypesResponse
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
types | array of AuthorizationDetailsTypeMetadata | Yes |
AuthorizationDetailsTypeMetadata
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | The type value clients send in |
name | string | Yes | |
description | string | ||
version | integer | Yes | The type's version, which increments when a change affects earlier approvals and grants. |
schema | object | Yes | The JSON Schema 2020-12 of the fields a client may send, in the order the type declares them. Fields the processor supplies and field policies are left out. |
modifications | array of object | Yes | The changes a client may make to a granted detail at the token endpoint. |
AuthCallbackRequest
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
authId | string | Yes | The authorization session identifier returned by the flow engine. |
assertion | string | Yes | Signed JWT assertion from the flow engine carrying the terminal flow outcome. A completed flow returns an authentication assertion (relay the flow response's assertion field); a terminally failed flow returns an error assertion carrying the flow error type and description (relay the flow response's errorAssertion field). The server validates the signature and the binding to this authorization request before acting, and tells the two apart by the assertion's own claims. |
type | string | OAuth grant type of the request. Defaults to the authorization code flow when absent. Allowed values: | |
sessionData | array of object | The SSO sessions the flow's responses returned, as the flow execution API's |
AuthCallbackResponse
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
redirect_uri | string | Yes | The full redirect URI for the client, including the authorization code and state. |
FlowCallbackStatusResponse
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | Indicates that the CIBA or Device Code callback was processed successfully. Allowed values: |
DeviceAuthorizationRequest
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
client_id | string | The client identifier, required when it is not supplied through client authentication. | |
client_secret | string | The client secret for confidential clients using form-based authentication. | |
scope | string | Space-separated list of requested scopes. | |
resource | array of string (uri) | Resource indicator per RFC 8707. ThunderID supports one resource value; multiple values are rejected with invalid_target. |
DeviceAuthorizationResponse
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
device_code | string | Yes | Opaque code used by the device to poll the token endpoint. |
user_code | string | Yes | Short code displayed by the device and entered by the user. |
verification_uri | string (uri) | Yes | URI where the user enters the user code and completes authorization. |
verification_uri_complete | string (uri) | Yes | Verification URI containing the user code for direct navigation or a QR code. |
expires_in | integer (int64) | Yes | Lifetime of the device code and user code in seconds. |
interval | integer (int64) | Yes | Minimum number of seconds between token endpoint polling requests. |
TokenRequest
Type: object
19 properties
| Name | Type | Required | Description |
|---|---|---|---|
grant_type | string | Yes | The OAuth 2.0 grant type. Allowed values: |
client_id | string | The client identifier (required when not using HTTP Basic auth). | |
client_secret | string | The client secret (required for confidential clients not using HTTP Basic auth). | |
code | string | The authorization code (required for authorization_code grant). | |
redirect_uri | string | Must match the redirect_uri used in the authorization request. | |
code_verifier | string | PKCE code verifier (RFC 7636). | |
scope | string | Space-separated list of requested scopes. | |
refresh_token | string | The refresh token (required for refresh_token grant). | |
subject_token | string | The subject token for token exchange (RFC 8693). | |
subject_token_type | string | The type URI of the subject token. A device secret ( | |
actor_token | string | The actor token for token exchange (RFC 8693). | |
actor_token_type | string | The type URI of the actor token. | |
requested_token_type | string | The desired type of the issued token (token exchange only). Set to | |
audience | string | Accepted for RFC 8693 token-exchange compatibility; it does not determine the issued access token's aud claim (use resource to select the token audience). Required, and limited to exactly one value, when requesting an ID-JAG ( | |
resource | string | Resource indicator (RFC 8707). For access-token issuance, binds the issued access token to exactly one resource server. When omitted from a request carrying permission scopes or authorization details, the configured defaultResourceServer is used, and if neither is available the request is rejected with invalid_target. OIDC-only and scopeless requests use the client_id audience. Optional for ID-JAG requests, where it is embedded in the issued ID-JAG's | |
assertion | string | ID-JAG assertion JWT issued by a trusted external IdP (draft-ietf-oauth-identity-assertion-authz-grant). Required for the | |
auth_req_id | string | The backchannel authentication request identifier returned by /oauth2/bc-authorize. Required for the | |
authorization_details | string | RFC 9396 authorization details as a JSON array. On the | |
device_code | string | The device code returned by /oauth2/device-authorize. Required for the |
TokenResponse
Type: object
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
access_token | string | Yes | The issued access token. |
token_type | string | Yes | |
expires_in | integer (int64) | Yes | Lifetime of the access token in seconds. |
refresh_token | string | The refresh token, if issued. | |
scope | string | The scopes granted (may differ from those requested). | |
id_token | string | The ID token, issued for openid scope. | |
issued_token_type | string | The type of the issued token (token exchange only). | |
authorization_details | array of object | The RFC 9396 authorization details the access token carries, when the grant has any. | |
device_secret | string | The SSO sessions the callback posted for the authorization code (authorization code grant only). Returned only when the authorization request asked for the |
PARRequest
Type: object
13 properties
| Name | Type | Required | Description |
|---|---|---|---|
response_type | string | Yes | Allowed values: |
client_id | string | Yes | |
redirect_uri | string | ||
scope | string | ||
state | string | ||
nonce | string | ||
code_challenge | string | ||
code_challenge_method | string | Allowed values: | |
resource | string | Resource indicator per RFC 8707 (absolute URI). Only one value is supported; multiple resource values are rejected with invalid_target. | |
authorization_details | string | RFC 9396 authorization details: a JSON array of objects, each naming a registered | |
acr_values | string | ||
claims | string | ||
prompt | string | Space-separated list of prompts (OIDC Core §3.1.2.1). Supported values: |
PARResponse
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
request_uri | string | Yes | The request URI referencing the stored authorization parameters. |
expires_in | integer (int64) | Yes | Lifetime of the request_uri in seconds. |
IntrospectRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
token | string | Yes | The token to introspect. |
token_type_hint | string | Hint about the type of the submitted token. |
RevokeRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
token | string | Yes | The access or refresh token to revoke. |
token_type_hint | string | Hint about the type of the submitted token ( |
IntrospectResponse
Type: object
14 properties
| Name | Type | Required | Description |
|---|---|---|---|
active | boolean | Yes | Indicates whether the token is currently active. |
scope | string | ||
client_id | string | ||
username | string | ||
token_type | string | ||
exp | integer (int64) | ||
iat | integer (int64) | ||
nbf | integer (int64) | ||
sub | string | ||
sub_type | string | Identity class of the token subject. Present on tokens issued through the
Allowed values: | |
aud | one of: string, array of string | Audience — may be a string or an array of strings. | |
iss | string | ||
jti | string | ||
authorization_details | array of object | The RFC 9396 authorization details the token carries, when it has any. |
JWK
Type: object
12 properties
| Name | Type | Required | Description |
|---|---|---|---|
kid | string | Key ID. | |
kty | string | Yes | Key type (e.g. RSA, EC). |
use | string | Intended use (sig or enc). | |
alg | string | Algorithm. | |
n | string | RSA modulus (Base64urlUInt). | |
e | string | RSA public exponent (Base64urlUInt). | |
crv | string | EC curve name. | |
x | string | EC x coordinate. | |
y | string | EC y coordinate. | |
x5c | array of string | X.509 certificate chain. | |
x5t | string | X.509 certificate SHA-1 thumbprint. | |
x5t#S256 | string | X.509 certificate SHA-256 thumbprint. |
UserInfoResponse
Type: object
19 properties
| Name | Type | Required | Description |
|---|---|---|---|
sub | string | Yes | Subject identifier. |
name | string | ||
given_name | string | ||
family_name | string | ||
middle_name | string | ||
nickname | string | ||
preferred_username | string | ||
profile | string | ||
picture | string | ||
website | string | ||
email | string | ||
email_verified | boolean | Whether the user verified the | |
gender | string | ||
birthdate | string | ||
zoneinfo | string | ||
locale | string | ||
phone_number | string | ||
phone_number_verified | boolean | Whether the user verified the | |
updated_at | integer (int64) |
DCRRegistrationRequest
Type: object
Language-tagged fields (e.g. client_name#fr) are also accepted as top-level properties.
23 properties
| Name | Type | Required | Description |
|---|---|---|---|
ou_id | string | Organization Unit ID to associate the client with. | |
redirect_uris | array of string | Yes | Registered redirect URIs. |
post_logout_redirect_uris | array of string | Allowed post-logout redirect URIs for RP-Initiated Logout. | |
backchannel_logout_uri | string | OIDC Back-Channel Logout endpoint. An absolute http or https URL without userinfo, a fragment or a wildcard; public clients must use https. | |
grant_types | array of string | Allowed values: | |
response_types | array of string | Allowed values: | |
client_name | string | ||
client_uri | string | ||
logo_uri | string | ||
token_endpoint_auth_method | string | Allowed values: | |
jwks_uri | string | ||
jwks | object | ||
scope | string | ||
contacts | array of string | ||
tos_uri | string | ||
policy_uri | string | ||
require_pushed_authorization_requests | boolean | ||
userinfo_signed_response_alg | string | ||
userinfo_encrypted_response_alg | string | ||
userinfo_encrypted_response_enc | string | ||
id_token_signed_response_alg | string | ||
id_token_encrypted_response_alg | string | ||
id_token_encrypted_response_enc | string |
DCRUpdateRequest
Type: DCRRegistrationRequest
Request body of an RFC 7592 client configuration update. It carries the registration metadata together with the two fields that only an update has.
25 properties
| Name | Type | Required | Description |
|---|---|---|---|
ou_id | string | Organization Unit ID to associate the client with. | |
redirect_uris | array of string | Yes | Registered redirect URIs. |
post_logout_redirect_uris | array of string | Allowed post-logout redirect URIs for RP-Initiated Logout. | |
backchannel_logout_uri | string | OIDC Back-Channel Logout endpoint. An absolute http or https URL without userinfo, a fragment or a wildcard; public clients must use https. | |
grant_types | array of string | Allowed values: | |
response_types | array of string | Allowed values: | |
client_name | string | ||
client_uri | string | ||
logo_uri | string | ||
token_endpoint_auth_method | string | Allowed values: | |
jwks_uri | string | ||
jwks | object | ||
scope | string | ||
contacts | array of string | ||
tos_uri | string | ||
policy_uri | string | ||
require_pushed_authorization_requests | boolean | ||
userinfo_signed_response_alg | string | ||
userinfo_encrypted_response_alg | string | ||
userinfo_encrypted_response_enc | string | ||
id_token_signed_response_alg | string | ||
id_token_encrypted_response_alg | string | ||
id_token_encrypted_response_enc | string | ||
client_id | string | Yes | Identifier of the client being updated. Required, and it must match the client in the request path: a request that omits it, or that names a different client, is rejected. |
client_secret | string | Optional. When present it must match the client's currently issued secret, otherwise the request is rejected. The value is only verified, never written: a client cannot choose its own secret. |
DCRRegistrationResponse
Type: object
Language-tagged variants (e.g. client_name#fr) are included as top-level properties in the response.
26 properties
| Name | Type | Required | Description |
|---|---|---|---|
client_id | string | Yes | |
client_secret | string | ||
client_secret_expires_at | integer (int64) | Yes | Unix timestamp when the secret expires, or 0 if it never expires. |
app_id | string | Internal application ID. | |
redirect_uris | array of string | ||
post_logout_redirect_uris | array of string | ||
backchannel_logout_uri | string | ||
grant_types | array of string | ||
response_types | array of string | ||
client_name | string | ||
client_uri | string | ||
logo_uri | string | ||
token_endpoint_auth_method | string | ||
jwks_uri | string | ||
jwks | object | ||
scope | string | ||
contacts | array of string | ||
tos_uri | string | ||
policy_uri | string | ||
require_pushed_authorization_requests | boolean | ||
userinfo_signed_response_alg | string | ||
userinfo_encrypted_response_alg | string | ||
userinfo_encrypted_response_enc | string | ||
id_token_signed_response_alg | string | ||
id_token_encrypted_response_alg | string | ||
id_token_encrypted_response_enc | string |
BackchannelAuthRequest
Type: object
11 properties
| Name | Type | Required | Description |
|---|---|---|---|
client_id | string | The client identifier (required when not using HTTP Basic auth). | |
client_secret | string | The client secret (required for confidential clients not using HTTP Basic auth). | |
login_hint | string | A hint identifying the user to authenticate. Exactly one of login_hint or id_token_hint must be provided. | |
id_token_hint | string | A previously issued ID token identifying the user. Exactly one of login_hint or id_token_hint must be provided. | |
login_hint_token | string | Defined by the CIBA specification but not supported; requests including it are rejected with invalid_request. Use login_hint instead. | |
scope | string | Yes | Space-separated scopes. Must include |
resource | string | Resource indicator per RFC 8707 (absolute URI, no fragment). Only one value is supported; requests with multiple resource values, including duplicates, are rejected with invalid_target. When omitted from a request carrying permission scopes or authorization details, the configured defaultResourceServer is used; such a request with no resource and no default is rejected with invalid_target. OIDC-only requests use the client_id audience. | |
binding_message | string | Optional human-readable message shown to the user in the authentication notification (CIBA Core 1.0 §7.1). Limited to 256 printable characters. | |
requested_expiry | integer | Requested lifetime of the auth_req_id in seconds. Clamped to the server maximum. | |
acr_values | string | Space-separated list of requested Authentication Context Class Reference values. | |
authorization_details | string | RFC 9396 authorization details: a JSON array of objects, each naming a registered |
BackchannelAuthResponse
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
auth_req_id | string | Yes | Unique identifier for the backchannel authentication request, polled at the token endpoint. |
expires_in | integer | Yes | Lifetime of the auth_req_id in seconds. |
interval | integer | Yes | Minimum number of seconds the client must wait between token endpoint polls. |
Error
Type: object
Error returned by the authorization details type metadata endpoints.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Error code. |
message | I18nMessage | Yes | Internationalized message with translation key and default value. |
description | I18nMessage | Internationalized message with translation key and default value. |
I18nMessage
Type: object
Internationalized message with translation key and default value.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Translation key for fetching localized message. |
defaultValue | string | Yes | Default message in English (fallback). |
OAuthError
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
error | string | Yes | OAuth 2.0 error code. |
error_description | string | Human-readable error description. |
Was this page helpful?