O Auth Client Register
RFC 7591 OAuth 2.0 Dynamic Client Registration. Ordinary Authorization Code clients are tenant-owned and must use PKCE. Only an explicit grant_types: [client_credentials] request provisions a bot account and a separate OAuth client atomically, with client_name as its handle. It requires private_key_jwt and public JWKS. Mixed autonomous and delegated grants are rejected. Delegated private_key_jwt clients create no account. Autonomous clients inherit the bot account's current role permissions. Client credentials token requests without scope receive those permissions; explicit token scopes may narrow them. The optional runtime setting services.oauth.autonomous_registration_role_id assigns an additional role atomically at provisioning; deleted role references are skipped. Autonomous registration is controlled by the runtime setting services.oauth.autonomous_registration_mode: disabled rejects it, protected requires an Initial Access Token in Authorization: Bearer, and open permits it without a token. Supplied tokens must always be valid and authorize autonomous registration only. One use is consumed atomically with successful account and client creation. Invalid metadata or handle collisions do not consume a use. Ordinary DCR does not require an IAT. This endpoint is rate limited. In approval mode, a valid IAT permits immediate registration. Otherwise, autonomous clients must opt in with registration_mode: [approval] and receive 202 with a registration_code and verification challenge. Poll this endpoint with registration_code; metadata supplied on a poll is ignored. Approval returns 201 on a subsequent poll. Early polls return 429 with Retry-After. Denial, expiry, and unknown or consumed codes return 400. Send registration_code and cancel_registration: true to cancel a pending request (204). No account or client exists while approval is pending. Implements draft-dellaert-oauth-approval-based-dcr-00 (experimental).
RFC 7591 OAuth 2.0 Dynamic Client Registration.
Ordinary Authorization Code clients are tenant-owned and must use PKCE. Only an explicit grant_types: [client_credentials] request provisions a bot account and a separate OAuth client atomically, with client_name as its handle. It requires private_key_jwt and public JWKS. Mixed autonomous and delegated grants are rejected. Delegated private_key_jwt clients create no account. Autonomous clients inherit the bot account's current role permissions. Client credentials token requests without scope receive those permissions; explicit token scopes may narrow them. The optional runtime setting services.oauth.autonomous_registration_role_id assigns an additional role atomically at provisioning; deleted role references are skipped.
Autonomous registration is controlled by the runtime setting services.oauth.autonomous_registration_mode: disabled rejects it, protected requires an Initial Access Token in Authorization: Bearer, and open permits it without a token. Supplied tokens must always be valid and authorize autonomous registration only. One use is consumed atomically with successful account and client creation. Invalid metadata or handle collisions do not consume a use. Ordinary DCR does not require an IAT. This endpoint is rate limited.
In approval mode, a valid IAT permits immediate registration. Otherwise, autonomous clients must opt in with registration_mode: [approval] and receive 202 with a registration_code and verification challenge. Poll this endpoint with registration_code; metadata supplied on a poll is ignored. Approval returns 201 on a subsequent poll. Early polls return 429 with Retry-After. Denial, expiry, and unknown or consumed codes return 400. Send registration_code and cancel_registration: true to cancel a pending request (204). No account or client exists while approval is pending. Implements draft-dellaert-oauth-approval-based-dcr-00 (experimental).
application/json- body
RFC 7591 client metadata supplied by a dynamically registering client. All fields are optional; Storyden applies safe defaults and rejects metadata that requests unsupported grants, response types, redirect URIs or scopes.
registration_mode?array<string>Include approval to accept deferred autonomous registration. Unknown modes are ignored.
registration_code?stringOpaque bearer credential for polling or cancellation. Its presence selects polling; client metadata cannot replace the original request.
cancel_registration?booleanWith registration_code, cancel an unapproved pending registration.
client_name?stringredirect_uris?array<>grant_types?array<string>response_types?array<string>scope?stringtoken_endpoint_auth_method?stringjwks?Public JSON Web Key Set used for private_key_jwt client authentication.
application_type?stringlogo_uri?stringuriclient_uri?stringuritos_uri?stringuripolicy_uri?stringuriRFC 7591 client information response. Contains the generated
client_id, the one-time client_secret for confidential clients, and
the registered client metadata.
application/json- response
RFC 7591 client information response containing issued credentials and
the registered client metadata. client_secret is only present for
shared-secret clients. client_secret_expires_at is always 0,
indicating the secret does not expire.
client_id*stringclient_secret?stringclient_id_issued_at*integerint64client_secret_expires_at*integerint64client_name?stringredirect_uris*array<>grant_types*array<string>response_types*array<string>scope?stringtoken_endpoint_auth_method*stringapplication_type?stringlogo_uri?stringuriclient_uri?stringuritos_uri?stringuripolicy_uri?stringuricurl -X POST 'https://example.com/api/oauth/register' \ -H 'Content-Type: application/json' \ -d '{}'{ "client_id": "string", "client_secret": "string", "client_id_issued_at": 0, "client_secret_expires_at": 0, "client_name": "string", "redirect_uris": [ "http://example.com" ], "grant_types": [ "string" ], "response_types": [ "string" ], "scope": "string", "token_endpoint_auth_method": "string", "application_type": "string", "logo_uri": "http://example.com", "client_uri": "http://example.com", "tos_uri": "http://example.com", "policy_uri": "http://example.com"}O Auth Client List GET
List OAuth clients created by the authenticated account. This is the member-facing "apps I created" view. OAuth clients are application definitions: client ID, client type, redirect URIs, allowed scopes, and allowed grants. This does not list built-in first-party clients or third-party apps the member has merely authorised. Use `/auth/oauth/tokens` for the "apps I have authorised" view.
O Auth Client Update PATCH
Update an OAuth client created by the authenticated account. Allowed scopes must remain within the authenticated account's current permissions. If the account has `ADMINISTRATOR`, it may configure any Storyden permission scope because `ADMINISTRATOR` implicitly grants all permissions. Changing allowed scopes affects future grants and refreshes but does not immediately invalidate already-issued JWT access tokens.