Skip to content

Commit 2231d4f

Browse files
committed
Use tenant-specific authority instead of organizations in certain tests
1 parent faf5dce commit 2231d4f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tests/test_e2e.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -910,9 +910,8 @@ def test_acquire_token_obo(self):
910910
web_api_app = get_app_config(AppSecrets.WEB_API_CLIENT)
911911

912912
# Step 1: PCA gets token for user to access the WebAPI
913-
# Note: Java test uses "organizations" authority for PCA
914913
config_pca = {
915-
"authority": "https://login.microsoftonline.com/organizations",
914+
"authority": user.authority,
916915
"client_id": web_api_app.app_id,
917916
"username": user.upn,
918917
"password": password,
@@ -923,7 +922,7 @@ def test_acquire_token_obo(self):
923922
# Note: web_api_app.client_secret contains the Key Vault secret name,
924923
# which we pass to get_secret() to retrieve the actual secret value.
925924
config_cca = {
926-
"authority": user.authority, # Tenant-specific authority
925+
"authority": user.authority,
927926
"client_id": web_api_app.app_id,
928927
"client_secret": get_secret(web_api_app.client_secret, vault="msal_team"),
929928
"scope": ["https://graph.microsoft.com/.default"],
@@ -1247,7 +1246,7 @@ def test_cca_obo_should_bypass_regional_endpoint_therefore_still_work(self):
12471246

12481247
# Step 1: PCA gets token for user to access the WebAPI
12491248
config_pca = {
1250-
"authority": "https://login.microsoftonline.com/organizations",
1249+
"authority": user.authority,
12511250
"client_id": web_api_app.app_id,
12521251
"username": user.upn,
12531252
"password": password,

0 commit comments

Comments
 (0)