Skip to content
Snippets Groups Projects
Commit 2944d9f0 authored by Julian's avatar Julian
Browse files

fix oauth2 default scope injection

parent 8cdadd69
No related branches found
No related tags found
No related merge requests found
Pipeline #946 passed
......@@ -71,7 +71,7 @@ def inject_scope(func):
@functools.wraps(func)
def decorator(*args, **kwargs):
args = request.args.to_dict()
if 'profile' not in args:
if not args.get('scope'):
args['scope'] = 'profile'
request.args = ImmutableMultiDict(args)
return func(*args, **kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment