Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36e7f50

Browse files
authored
Merge pull request #475 from akira-dev/master
Remove check on empty scopes for implicit grant flow
2 parents 92b686f + 439e2fe commit 36e7f50

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

oauthlib/oauth2/rfc6749/grant_types/implicit.py

-5
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,6 @@ def create_token_response(self, request, token_handler):
200200
.. _`Section 7.1`: https://tools.ietf.org/html/rfc6749#section-7.1
201201
"""
202202
try:
203-
# request.scopes is only mandated in post auth and both pre and
204-
# post auth use validate_authorization_request
205-
if not request.scopes:
206-
raise ValueError('Scopes must be set on post auth.')
207-
208203
self.validate_token_request(request)
209204

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

0 commit comments

Comments
 (0)