Skip to content

Commit

Permalink
Add client_secret to sensitive_post_parameters (#1512)
Browse files Browse the repository at this point in the history
The client_secret is posted to the token endpoint when using the client_credentials grant.
  • Loading branch information
jaap3 authored Oct 7, 2024
1 parent 13f0ace commit ce34da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oauth2_provider/views/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class TokenView(OAuthLibMixin, View):
* Client credentials
"""

@method_decorator(sensitive_post_parameters("password"))
@method_decorator(sensitive_post_parameters("password", "client_secret"))
def post(self, request, *args, **kwargs):
url, headers, body, status = self.create_token_response(request)
if status == 200:
Expand Down

0 comments on commit ce34da4

Please sign in to comment.