Skip to main content

Module oauth

Module oauth 

Source
Expand description

OAuth 2.0 API Endpoints

These endpoints are not implemented on this release line. Earlier releases answered them with placeholder data (an introspection said active: true for any string, the token endpoint issued made-up tokens without checking the client, the authorization endpoint redirected with a made-up code). Every handler here now answers 501 Not Implemented whatever the request says, so nothing that depends on them can be told that something is valid when it was never checked. The working OAuth 2.0 server is server::oauth (library API), and the 0.5 and 0.6 lines implement these endpoints in api::oauth2.

Structs§

AuthorizeRequest
OAuth authorization request parameters
ClientInfo
Client information
IntrospectRequest
POST /oauth/introspect Token introspection endpoint (RFC 7662)
IntrospectResponse
OAuthError
OAuth error response
RevokeRequest
POST /oauth/revoke Token revocation endpoint
TokenRequest
OAuth token request
TokenResponse
OAuth token response

Functions§

authorize
GET /oauth/authorize Not implemented: answers 501 and never redirects.
get_client_info
GET /oauth/clients/{client_id} Not implemented: answers 501; no client information is made up.
introspect_token
Not implemented: answers 501; never reports a token as active.
revoke_token
Not implemented: answers 501; nothing is revoked.
token
POST /oauth/token Not implemented: answers 501 for every grant type and issues nothing.