File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
src/main/java/com/microsoft/jenkins/azuread Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -16,16 +16,11 @@ private AzureEnvironment() {
16
16
}
17
17
18
18
static String getAuthorityHost (String azureEnvironmentName ) {
19
- switch (azureEnvironmentName ) {
20
- case AZURE_CHINA :
21
- return AzureAuthorityHosts .AZURE_CHINA ;
22
- case AZURE_US_GOVERNMENT_L4 :
23
- case AZURE_US_GOVERNMENT_L5 :
24
- return AzureAuthorityHosts .AZURE_GOVERNMENT ;
25
- case AZURE_PUBLIC_CLOUD :
26
- default :
27
- return AzureAuthorityHosts .AZURE_PUBLIC_CLOUD ;
28
- }
19
+ return switch (azureEnvironmentName ) {
20
+ case AZURE_CHINA -> "https://login.partner.microsoftonline.cn/" ;
21
+ case AZURE_US_GOVERNMENT_L4 , AZURE_US_GOVERNMENT_L5 -> AzureAuthorityHosts .AZURE_GOVERNMENT ;
22
+ default -> AzureAuthorityHosts .AZURE_PUBLIC_CLOUD ;
23
+ };
29
24
}
30
25
31
26
static String getGraphResource (String azureEnv ) {
You can’t perform that action at this time.
0 commit comments