Skip to content

Commit 1f02491

Browse files
committed
typo fix for MicrosoftAzureActiveDirectoryApi
1 parent ea8e48d commit 1f02491

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scribejava-apis/src/main/java/com/github/scribejava/apis/microsoftazureactivedirectory/BaseMicrosoftAzureActiveDirectoryApi.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public abstract class BaseMicrosoftAzureActiveDirectoryApi extends DefaultApi20
99
protected static final String COMMON_TENANT = "common";
1010

1111
private static final String MSFT_LOGIN_URL = "https://login.microsoftonline.com/";
12-
private static final String TOKEN_URI = "/oauth2/token";
12+
private static final String OAUTH_2 = "/oauth2";
1313
private final String tenant;
1414

1515
protected BaseMicrosoftAzureActiveDirectoryApi() {
@@ -22,12 +22,12 @@ protected BaseMicrosoftAzureActiveDirectoryApi(String tenant) {
2222

2323
@Override
2424
public String getAccessTokenEndpoint() {
25-
return MSFT_LOGIN_URL + tenant + TOKEN_URI;
25+
return MSFT_LOGIN_URL + tenant + OAUTH_2 + getEndpointVersionPath() + "/token";
2626
}
2727

2828
@Override
2929
protected String getAuthorizationBaseUrl() {
30-
return MSFT_LOGIN_URL + tenant + getEndpointVersionPath() + "/oauth2/authorize";
30+
return MSFT_LOGIN_URL + tenant + OAUTH_2 + getEndpointVersionPath() + "/authorize";
3131
}
3232

3333
@Override

0 commit comments

Comments
 (0)