gbv / paia

Specification of Patrons Account Information API (PAIA)
http://gbv.github.io/paia
15 stars 12 forks source link

Adjust PAIA auth logout to RFC 7009 Token Revocation #49

Closed nichtich closed 1 year ago

nichtich commented 9 years ago

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:

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

 POST /auth/logout HTTP/1.1
 Host: example.org
 Content-Type: application/x-www-form-urlencoded
 Authorization: Bearer czZCaGRSa3F0MzpnWDFmQmF0M2JW

 token=czZCaGRSa3F0MzpnWDFmQmF0M2JW&token_type_hint=access_token
nichtich commented 7 years ago

The following changes are required in specification and implementation:

nichtich commented 5 years ago

Does anyone use OAuth Token Revocation at all? Public identify providers have implemented it differently anyway:

Valid implementations exist nevertheless and full conformance to RFC 7009 would be nice but I doubt the endpoint will actually be used.