Skip to content

Commit db2e7a5

Browse files
authored
Merge pull request #574 from AzureAD/SJAIN/regional-endpoint-updates
update regional endpoints
2 parents eecedd8 + 70bd856 commit db2e7a5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

msal4j-sdk/src/integrationtest/java/com.microsoft.aad.msal4j/ClientCredentialsIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private void assertAcquireTokenCommon_withRegion(String clientId, IClientCredent
172172

173173
ConfidentialClientApplication ccaRegion = ConfidentialClientApplication.builder(
174174
clientId, credential).
175-
authority(TestConstants.MICROSOFT_AUTHORITY).azureRegion("westus").
175+
authority("https://login.microsoft.com/microsoft.onmicrosoft.com").azureRegion("westus").
176176
build();
177177

178178
//Ensure behavior when region not specified

msal4j-sdk/src/integrationtest/java/com.microsoft.aad.msal4j/TestConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class TestConstants {
3030
public final static String COMMON_AUTHORITY_WITH_PORT = MICROSOFT_AUTHORITY_HOST_WITH_PORT + "msidlab4.onmicrosoft.com";
3131
public final static String MICROSOFT_AUTHORITY = MICROSOFT_AUTHORITY_HOST + "microsoft.onmicrosoft.com";
3232
public final static String TENANT_SPECIFIC_AUTHORITY = MICROSOFT_AUTHORITY_HOST + MICROSOFT_AUTHORITY_TENANT;
33-
public final static String REGIONAL_MICROSOFT_AUTHORITY_BASIC_HOST_WESTUS = "westus.r." + MICROSOFT_AUTHORITY_BASIC_HOST;
33+
public final static String REGIONAL_MICROSOFT_AUTHORITY_BASIC_HOST_WESTUS = "westus.login.microsoft.com";
3434

3535
public final static String ARLINGTON_ORGANIZATIONS_AUTHORITY = ARLINGTON_MICROSOFT_AUTHORITY_HOST + "organizations/";
3636
public final static String ARLINGTON_COMMON_AUTHORITY = ARLINGTON_MICROSOFT_AUTHORITY_HOST + "common/";

msal4j-sdk/src/main/java/com/microsoft/aad/msal4j/AadInstanceDiscoveryProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AadInstanceDiscoveryProvider {
2222
private final static String AUTHORIZE_ENDPOINT_TEMPLATE = "https://{host}/{tenant}/oauth2/v2.0/authorize";
2323
private final static String INSTANCE_DISCOVERY_ENDPOINT_TEMPLATE = "https://{host}:{port}/common/discovery/instance";
2424
private final static String INSTANCE_DISCOVERY_REQUEST_PARAMETERS_TEMPLATE = "?api-version=1.1&authorization_endpoint={authorizeEndpoint}";
25-
private final static String HOST_TEMPLATE_WITH_REGION = "{region}.r.{host}";
25+
private final static String HOST_TEMPLATE_WITH_REGION = "{region}.{host}";
2626
private final static String SOVEREIGN_HOST_TEMPLATE_WITH_REGION = "{region}.{host}";
2727
private final static String REGION_NAME = "REGION_NAME";
2828
private final static int PORT_NOT_SET = -1;

0 commit comments

Comments
 (0)