diff --git a/msal/application.py b/msal/application.py index 01f25461..f83f99b7 100644 --- a/msal/application.py +++ b/msal/application.py @@ -22,10 +22,11 @@ __version__ = "1.1.0" logger = logging.getLogger(__name__) +RESERVED_SCOPES = frozenset(['openid', 'profile', 'offline_access']) def decorate_scope( scopes, client_id, - reserved_scope=frozenset(['openid', 'profile', 'offline_access'])): + reserved_scope=RESERVED_SCOPES): if not isinstance(scopes, (list, set, tuple)): raise ValueError("The input scopes should be a list, tuple, or set") scope_set = set(scopes) # Input scopes is typically a list. Copy it to a set.