Skip to content

Commit

Permalink
Merge pull request #475 from akira-dev/master
Browse files Browse the repository at this point in the history
Remove check on empty scopes for implicit grant flow
  • Loading branch information
JonathanHuot committed Sep 7, 2018
2 parents 92b686f + 439e2fe commit 36e7f50
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions oauthlib/oauth2/rfc6749/grant_types/implicit.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,6 @@ def create_token_response(self, request, token_handler):
.. _`Section 7.1`: https://tools.ietf.org/html/rfc6749#section-7.1
"""
try:
# request.scopes is only mandated in post auth and both pre and
# post auth use validate_authorization_request
if not request.scopes:
raise ValueError('Scopes must be set on post auth.')

self.validate_token_request(request)

# If the request fails due to a missing, invalid, or mismatching
Expand Down

0 comments on commit 36e7f50

Please sign in to comment.