HTTP Endpoints¶
POST /oauth2/clients¶
Register a new OAuth 2.0 client (dynamic client registration). Returns a
client_id and client_secret that the client can use to authenticate
with the token endpoint.
Request body (JSON):
redirect_uris(required)List of allowed redirect URIs.
token_endpoint_auth_methodHow the client authenticates at the token endpoint. One of
client_secret_basic(default),client_secret_post, ornone.scopeSpace-separated list of scopes the client may request. Defaults to all supported scopes:
openid,profile,email,address,phone.
Response (201 Created):
{
"client_id": "...",
"client_secret": "...",
"redirect_uris": ["https://example.com/callback"],
"token_endpoint_auth_method": "client_secret_basic",
"grant_types": ["authorization_code", "refresh_token"],
"response_types": ["code"]
}
PUT /users/{sub}¶
Set claims for a user to be included in the ID token and userinfo endpoint.
{sub} identifies the user to update. The request body is a JSON object
whose keys are claim names; any sub key in the JSON body is ignored:
{
"email": "alice@example.com",
"nickname": "alice"
}
A request replaces any previously set claims for the subject.
POST /users/{sub}/revoke-tokens¶
Revoke all access and refresh tokens issued for this user.