Enums§
- Client
Auth Error - Why a client failed to authenticate against its
client_id/client_secret.
Functions§
- authenticate_
oauth_ client - Looks up a client by
client_idand, if it is confidential, verifiesprovided_secretagainst its stored digest with a constant-time comparison. - oauth_
error - An OAuth error response (RFC 6749 §4.1.2.1, §5.2). With
redirect, which must be a redirect URI verified for the client, it is sent to the client as a redirect; otherwise it is answered as JSON. - oauth_
invalid_ client invalid_client: the client could not be authenticated.- oauth_
invalid_ grant invalid_grant: the authorization code, refresh token or device code is invalid, expired or revoked.- oauth_
invalid_ request - oauth_
invalid_ scope invalid_scope: the requested scope is invalid, unknown or exceeds what is allowed.- oauth_
invalid_ token invalid_tokenfor a request to a protected resource (RFC 6750 §3.1).- oauth_
server_ error - A
server_erroranswered as JSON, keeping the internal cause for the logs. - oauth_
unauthorized_ client unauthorized_client: the client may not use this grant type.- ok_
json_ no_ cache - scope_
has_ openid - split_
and_ validate_ scopes - Splits a space-delimited
scopestring and checks every element againstallowed.