Skip to content

Commit

Permalink
do not check client_type inside authenticate_client()
Browse files Browse the repository at this point in the history
as `client_authentication_required()` describes, a non credential client
might also enters `authenticate_client()`.
  • Loading branch information
flaneur2020 authored and lepture committed Apr 2, 2015
1 parent dbc00f3 commit e82c0b4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions flask_oauthlib/provider/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,6 @@ def authenticate_client(self, request, *args, **kwargs):
log.debug('Authenticate client failed, secret not match.')
return False

if client.client_type != 'confidential':
log.debug('Authenticate client failed, not confidential.')
return False
log.debug('Authenticate client success.')
return True

Expand Down

0 comments on commit e82c0b4

Please sign in to comment.