Skip to content

Commit ce34da4

Browse files
author
Jaap Roes
authored
Add client_secret to sensitive_post_parameters (#1512)
The client_secret is posted to the token endpoint when using the client_credentials grant.
1 parent 13f0ace commit ce34da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth2_provider/views/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class TokenView(OAuthLibMixin, View):
292292
* Client credentials
293293
"""
294294

295-
@method_decorator(sensitive_post_parameters("password"))
295+
@method_decorator(sensitive_post_parameters("password", "client_secret"))
296296
def post(self, request, *args, **kwargs):
297297
url, headers, body, status = self.create_token_response(request)
298298
if status == 200:

0 commit comments

Comments
 (0)