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
{{ message }}
Repository navigation
RevocationEndpoint only allows client_secret_basic by default #1057
TokenEndpoint.CLIENT_AUTH_METHODS defaults to ["client_secret_basic"]. RevocationEndpoint and IntrospectionEndpoint inherit this default.
A client that uses client_secret_post, or a public client (none), gets invalid_client when it tries to revoke a token. The fix is to set CLIENT_AUTH_METHODS on the endpoint subclass, but this attribute is not documented. Per RFC 7009 §2.1, the server checks client credentials "in case of a confidential client", and §5 expects public clients to revoke tokens too.
The defaults are also inconsistent across the library. AuthorizationCodeGrant allows client_secret_basic and client_secret_post. The RFC 8628 endpoint and grant allow client_secret_basic, client_secret_post and none.
I suggest to set CLIENT_AUTH_METHODS = ["client_secret_basic", "client_secret_post", "none"] on RevocationEndpoint only. IntrospectionEndpoint should keep its default: per RFC 7662 §2.1, the endpoint must require some form of authorization. check_endpoint_auth_method still lets each client restrict its own method.
Activity