Skip to content

Commit

Permalink
do not check secret for non credential clients
Browse files Browse the repository at this point in the history
  • Loading branch information
flaneur2020 authored and lepture committed Apr 2, 2015
1 parent 12b1990 commit dbc00f3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions flask_oauthlib/provider/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,11 +644,6 @@ def authenticate_client_id(self, client_id, request, *args, **kwargs):
log.debug('Authenticate failed, client not found.')
return False

if request.grant_type == 'authorization_code' and \
client.client_secret != request.client_secret:
log.debug('Authenticate client failed, secret not match.')
return False

# attach client on request for convenience
request.client = client
return True
Expand Down

0 comments on commit dbc00f3

Please sign in to comment.