Skip to content

Commit abf0755

Browse files
committed
No scope is valid #44
1 parent 8affdd2 commit abf0755

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

flask_oauthlib/client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,11 @@ def authorize(self, callback=None):
446446
params = dict(self.request_token_params) or {}
447447
client = self.make_client()
448448

449-
scope = params.pop('scope')
449+
if 'scope' in params:
450+
scope = params.pop('scope')
451+
else:
452+
scope = None
453+
450454
if isinstance(scope, str):
451455
# oauthlib need unicode
452456
scope = _encode(scope, self.encoding)

0 commit comments

Comments
 (0)