OAuth
OAuth: 6 operations, tagged oauth in the OpenAPI document.
| Method | Path | Summary |
|---|---|---|
GET |
/.well-known/jwks.json |
JSON Web Key Set for verifying access and id tokens |
GET |
/.well-known/openid-configuration |
OIDC discovery document |
POST |
/oauth/introspect |
RFC 7662 token introspection (always 200; {active:false} for an invalid token) |
POST |
/oauth/revoke |
RFC 7009 token revocation (always 200, even for an unknown token) |
POST |
/oauth/token |
OAuth 2.0 token endpoint (client_credentials, authorization_code, refresh_token) |
GET |
/oauth/userinfo |
OIDC UserInfo for the Bearer access token (POST is accepted too) |
Operations
Section titled “Operations”GET /.well-known/jwks.json
Section titled “GET /.well-known/jwks.json”JSON Web Key Set for verifying access and id tokens
Operation ID: jwks
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json JWKSResponse |
default |
Error | application/json ErrorModel |
GET /.well-known/openid-configuration
Section titled “GET /.well-known/openid-configuration”OIDC discovery document
Operation ID: openidConfiguration
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json OIDCDiscoveryDocument |
default |
Error | application/json ErrorModel |
POST /oauth/introspect
Section titled “POST /oauth/introspect”RFC 7662 token introspection (always 200; {active:false} for an invalid token)
Operation ID: oauthIntrospect
Request body (required)
| Content type | Schema |
|---|---|
application/x-www-form-urlencoded |
TokenIntrospectForm |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json IntrospectResponse |
400 |
invalid_request, invalid_grant, unsupported_grant_type or unauthorized_client | application/json OAuthErrorBody |
401 |
invalid_client or invalid_token | application/json OAuthErrorBody |
POST /oauth/revoke
Section titled “POST /oauth/revoke”RFC 7009 token revocation (always 200, even for an unknown token)
Operation ID: oauthRevoke
Request body (required)
| Content type | Schema |
|---|---|
application/x-www-form-urlencoded |
TokenIntrospectForm |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | none |
400 |
invalid_request, invalid_grant, unsupported_grant_type or unauthorized_client | application/json OAuthErrorBody |
401 |
invalid_client or invalid_token | application/json OAuthErrorBody |
POST /oauth/token
Section titled “POST /oauth/token”OAuth 2.0 token endpoint (client_credentials, authorization_code, refresh_token)
Operation ID: oauthToken
Request body (required)
| Content type | Schema |
|---|---|
application/x-www-form-urlencoded |
TokenForm |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json TokenResponse |
400 |
invalid_request, invalid_grant, unsupported_grant_type or unauthorized_client | application/json OAuthErrorBody |
401 |
invalid_client or invalid_token | application/json OAuthErrorBody |
GET /oauth/userinfo
Section titled “GET /oauth/userinfo”OIDC UserInfo for the Bearer access token (POST is accepted too)
Operation ID: oauthUserinfo
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json UserInfoResponse |
400 |
invalid_request, invalid_grant, unsupported_grant_type or unauthorized_client | application/json OAuthErrorBody |
401 |
invalid_client or invalid_token | application/json OAuthErrorBody |
Schemas
Section titled “Schemas”IntrospectResponse
Section titled “IntrospectResponse”| Field | Type | Required | Description |
|---|---|---|---|
active |
boolean | yes | |
client_id |
string | no | |
email |
string | no | |
exp |
integer (int64) | no | |
iat |
integer (int64) | no | |
iss |
string | no | |
name |
string | no | |
scope |
string | no | |
sub |
string | no | |
tier |
string | no | |
token_type |
string | no | |
type |
string | no |
| Field | Type | Required | Description |
|---|---|---|---|
alg |
string | yes | |
crv |
string | no | |
e |
string | no | |
kid |
string | no | |
kty |
string | yes | |
n |
string | no | |
pub |
string | no | |
use |
string | yes | |
x |
string | no |
JWKSResponse
Section titled “JWKSResponse”| Field | Type | Required | Description |
|---|---|---|---|
keys |
JWK[] |
yes |
OAuthErrorBody
Section titled “OAuthErrorBody”| Field | Type | Required | Description |
|---|---|---|---|
error |
string | yes | |
error_description |
string | no |
OIDCDiscoveryDocument
Section titled “OIDCDiscoveryDocument”| Field | Type | Required | Description |
|---|---|---|---|
authorization_endpoint |
string | yes | |
claims_supported |
string[] | yes | |
code_challenge_methods_supported |
string[] | yes | |
end_session_endpoint |
string | no | |
grant_types_supported |
string[] | yes | |
id_token_signing_alg_values_supported |
string[] | yes | |
introspection_endpoint |
string | no | |
issuer |
string | yes | |
jwks_uri |
string | yes | |
request_parameter_supported |
boolean | yes | |
request_uri_parameter_supported |
boolean | yes | |
response_types_supported |
string[] | yes | |
revocation_endpoint |
string | no | |
scopes_supported |
string[] | yes | |
subject_types_supported |
string[] | yes | |
token_endpoint |
string | yes | |
token_endpoint_auth_methods_supported |
string[] | yes | |
userinfo_endpoint |
string | no |
TokenForm
Section titled “TokenForm”| Field | Type | Required | Description |
|---|---|---|---|
client_id |
string | no | Client id (omit when using HTTP Basic) |
client_secret |
string | no | Client secret (omit when using HTTP Basic) |
code |
string | no | authorization_code grant: the authorization code |
code_verifier |
string | no | authorization_code grant: PKCE verifier |
grant_type |
string | yes | OAuth grant type One of: authorization_code, refresh_token, client_credentials. |
redirect_uri |
string | no | authorization_code grant: the redirect URI used at /oauth/authorize |
refresh_token |
string | no | refresh_token grant: the refresh token |
scope |
string | no |
TokenIntrospectForm
Section titled “TokenIntrospectForm”| Field | Type | Required | Description |
|---|---|---|---|
client_id |
string | no | |
client_secret |
string | no | |
token |
string | yes |
TokenResponse
Section titled “TokenResponse”| Field | Type | Required | Description |
|---|---|---|---|
access_token |
string | yes | |
expires_in |
integer (int64) | yes | |
id_token |
string | no | |
refresh_expires_in |
integer (int64) | no | Seconds until the refresh token family’s absolute deadline (present with refresh_token) |
refresh_token |
string | no | |
scope |
string | no | |
token_type |
string | yes |
UserInfoResponse
Section titled “UserInfoResponse”| Field | Type | Required | Description |
|---|---|---|---|
applications |
string[] | yes | |
client_id |
string | no | |
clients |
string[] | yes | |
email |
string | no | |
name |
string | yes | |
roles |
string[] | yes | |
scope |
string | yes | |
sub |
string | yes | |
tier |
string | yes | |
type |
string | yes |