Skip to content

Commit 51d7ba1

Browse files
committed
Adjust error message per discussion with skwan
1 parent 798aa77 commit 51d7ba1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

msal/request.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ def decorate_scope(
1212
# We could make the developer pass these and then if they do they will
1313
# come back asking why they don't see refresh token or user information.
1414
raise ValueError(
15-
"API does not accept {} value as user-provided scopes".format(
15+
"MSAL always sends the scopes {}. They cannot be suppressed "
16+
"as they are required for the library to function. "
17+
"Do not include any of these scopes in the scope parameter.".format(
1618
reserved_scope))
1719
if client_id in scope_set:
1820
if len(scope_set) > 1:

0 commit comments

Comments
 (0)