diff --git a/uffd/oauth2/views.py b/uffd/oauth2/views.py index 50b808fc3b87d6efda4d817a867915753bd08f52..31b1354b1f6a40fda5564df012a25fca8be59080 100644 --- a/uffd/oauth2/views.py +++ b/uffd/oauth2/views.py @@ -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)