You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RFC 7009 defines a standard method for OAuth 2.0 token revocation. To align PAIA auth logout with this RFC 7009 it should become a Token Revoking Endpoint:
Use content type application/x-www-form-urlencoded
Require additional request parameter token
Support an optional request parameter token_type_hint (can be ignored)
RFC 7009 does not forbid response body, such as the current JSON object with patron:
The content of the response body is ignored by the client as all
necessary information is conveyed in the response code.
The current patron request field can be made optional and should be ignored: in fact logout does not logout a patron but a token.
For backwards-compatibility
PAIA auth could make the token parameter optional (although this does not strictly conform to RFC 7009) and just use the access token as provided with request parameter access_token or HTTP request header Authorization.
PAIA auth could also support JSON request in addition to application/x-www-form-urlencoded
RFC 7009 defines a standard method for OAuth 2.0 token revocation. To align PAIA auth logout with this RFC 7009 it should become a Token Revoking Endpoint:
application/x-www-form-urlencoded
token
token_type_hint
(can be ignored)RFC 7009 does not forbid response body, such as the current JSON object with
patron
:The current
patron
request field can be made optional and should be ignored: in fact logout does not logout a patron but a token.For backwards-compatibility
token
parameter optional (although this does not strictly conform to RFC 7009) and just use the access token as provided with request parameteraccess_token
or HTTP request headerAuthorization
.PAIA auth could also support JSON request in addition toapplication/x-www-form-urlencoded
Example request
The text was updated successfully, but these errors were encountered: