O Auth Token
Exchange an OAuth authorisation code, device code, refresh token, or client credentials grant for tokens. Supported grants are advertised by `/.well-known/openid-configuration`. Public clients authenticate with `client_id` only and must use grants suitable for public clients, such as device code or authorisation code with PKCE. Confidential clients must provide `client_secret` for authorisation-code, refresh-token, and client-credentials exchanges. Storyden access tokens are short-lived JWTs containing the issued `scope`. Revoking a refresh token or changing account permissions does not revoke an already-issued access token; permission changes are applied on the next token issuance or refresh. Device-code polling returns OAuth-compatible errors such as `authorization_pending`, `slow_down`, `expired_token`, `access_denied`, and `invalid_grant`.
Exchange an OAuth authorisation code, device code, refresh token, or client credentials grant for tokens.
Supported grants are advertised by /.well-known/openid-configuration.
Public clients authenticate with client_id only and must use grants
suitable for public clients, such as device code or authorisation code
with PKCE. Confidential clients must provide client_secret for
authorisation-code, refresh-token, and client-credentials exchanges.
Storyden access tokens are short-lived JWTs containing the issued
scope. Revoking a refresh token or changing account permissions does
not revoke an already-issued access token; permission changes are
applied on the next token issuance or refresh.
Device-code polling returns OAuth-compatible errors such as
authorization_pending, slow_down, expired_token,
access_denied, and invalid_grant.
application/x-www-form-urlencoded- body
grant_type*stringclient_id*stringclient_secret?stringscope?stringdevice_code?stringcode?stringredirect_uri?stringuricode_verifier?stringrefresh_token?stringclient_assertion_type?stringclient_assertion?stringToken response.
application/json- response
access_token?stringtoken_type?stringexpires_in?integerscope?stringid_token?stringrefresh_token?stringerror?stringcurl -X POST 'https://example.com/api/oauth/token' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'grant_type=string&client_id=string'{ "access_token": "string", "token_type": "string", "expires_in": 0, "scope": "string", "id_token": "string", "refresh_token": "string", "error": "string"}O Auth Remote Callback GET
Complete a remote OAuth authorization code callback. This validates the saved state, exchanges the code with PKCE, and stores returned tokens on the remote connection.
O Auth User Info GET
Return OpenID Connect UserInfo claims for the account represented by a valid bearer access token. Claims are scope-gated: - `openid` identifies the subject. - `profile` enables profile claims such as display name. - `email` enables email claims when the account has an email address. Storyden accounts do not always have email addresses, so email claims may be absent even when the `email` scope is present.