-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump scribejava-apis from 4.2.0 to 8.3.1 (#225)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tim Jacomb <[email protected]>
- Loading branch information
1 parent
5b00db2
commit 7afce5b
Showing
9 changed files
with
73 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/java/com/microsoft/jenkins/azuread/scribe/AzureAdApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.microsoft.jenkins.azuread.scribe; | ||
|
||
import com.github.scribejava.apis.MicrosoftAzureActiveDirectory20Api; | ||
|
||
public class AzureAdApi extends MicrosoftAzureActiveDirectory20Api { | ||
|
||
private final String tenant; | ||
private String authorityHost; | ||
private static final String OAUTH_2 = "/oauth2"; | ||
|
||
AzureAdApi(String tenant, String authorityHost) { | ||
super(tenant); | ||
this.authorityHost = authorityHost; | ||
this.tenant = tenant; | ||
} | ||
|
||
public static AzureAdApi custom(String tenant, String authorityHost) { | ||
return new AzureAdApi(tenant, authorityHost); | ||
} | ||
|
||
@Override | ||
public String getAccessTokenEndpoint() { | ||
return authorityHost + tenant + OAUTH_2 + getEndpointVersionPath() + "/token"; | ||
} | ||
|
||
@Override | ||
protected String getAuthorizationBaseUrl() { | ||
return authorityHost + tenant + OAUTH_2 + getEndpointVersionPath() + "/authorize"; | ||
} | ||
|
||
public String getLogoutUrl() { | ||
return authorityHost + tenant + OAUTH_2 + "/logout"; | ||
} | ||
} |
89 changes: 0 additions & 89 deletions
89
src/main/java/com/microsoft/jenkins/azuread/scribe/AzureApi.java
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
src/main/java/com/microsoft/jenkins/azuread/scribe/AzureJsonTokenExtractor.java
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
src/main/java/com/microsoft/jenkins/azuread/scribe/AzureOAuthService.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters