Skip to content

RevocationEndpoint only allows client_secret_basic by default #1057

Description

@azmeuk

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

  1. added
    role:authorization_server
    on Nov 14, 2026
  2. added theissue type on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    role:authorization_server

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions