Closed
Description
Describe the bug
When using the revocation endpoint, an error code 401
is returned even though client authentication is valid.
How to reproduce
- Call
RevocationEndpoint.create_revocation_response
with aheaders
dictionary containing the client authorization. - Notice that this parameter is ignored completely. Clearly, it is overridden instantly:
oauthlib/oauthlib/oauth2/rfc6749/endpoints/revocation.py
Lines 41 to 67 in 20d116c
Expected behavior
I expected this parameter to be respected
Additional context
- OAuth2
- This happened with django-oauth-toolkit after upgrading to oauthlib 3.0.0
- We're implementing a provider