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§
- Authorize
Request - OAuth authorization request parameters
- Client
Info - Client information
- Introspect
Request - POST /oauth/introspect Token introspection endpoint (RFC 7662)
- Introspect
Response - OAuth
Error - OAuth error response
- Revoke
Request - POST /oauth/revoke Token revocation endpoint
- Token
Request - OAuth token request
- Token
Response - OAuth token response
Functions§
- authorize
- GET /oauth/authorize
Not implemented: answers
501and 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
501for every grant type and issues nothing.