Skip to content

Commit

Permalink
Fix authenticate_none method, via #438
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Mar 18, 2022
1 parent 349a8c3 commit 01e95ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authlib/oauth2/rfc6749/authenticate_client.py
Expand Up @@ -85,7 +85,7 @@ def authenticate_none(query_client, request):
does not have a client secret.
"""
client_id = request.client_id
if client_id and 'client_secret' not in request.data:
if client_id and not request.data.get('client_secret'):
client = _validate_client(query_client, client_id, request.state)
log.debug(f'Authenticate {client_id} via "none" success')
return client
Expand Down

0 comments on commit 01e95ad

Please sign in to comment.