@@ -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