Skip to content

Commit 6feb432

Browse files
committed
Merge branch 'dev' into enable-ROPC-via-broker
2 parents 27fbffc + da156fe commit 6feb432

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

msal/application.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,12 @@ def _decorate_scope(
624624
# We could make the developer pass these and then if they do they will
625625
# come back asking why they don't see refresh token or user information.
626626
raise ValueError(
627-
"API does not accept {} value as user-provided scopes".format(
628-
reserved_scope))
627+
"""You cannot use any scope value that is reserved.
628+
Your input: {}
629+
The reserved list: {}""".format(list(scope_set), list(reserved_scope)))
630+
raise ValueError(
631+
"You cannot use any scope value that is in this reserved list: {}".format(
632+
list(reserved_scope)))
629633

630634
# client_id can also be used as a scope in B2C
631635
decorated = scope_set | reserved_scope

tests/test_e2e.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -507,12 +507,8 @@ class LabBasedTestCase(E2eTestCase):
507507
@classmethod
508508
def setUpClass(cls):
509509
# https://docs.msidlab.com/accounts/apiaccess.html#code-snippet
510-
try:
511-
cls.session = get_session(get_lab_app(), ["https://msidlab.com/.default"])
512-
except LabTokenError:
513-
cls.session = get_session(get_lab_app(), [
514-
# A lab change since June 10, 2024 which may or may not be reverted
515-
"https://request.msidlab.com/.default",
510+
cls.session = get_session(get_lab_app(), [
511+
"https://request.msidlab.com/.default", # A lab change since June 10, 2024
516512
])
517513

518514
@classmethod

0 commit comments

Comments
 (0)