-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Enable spring AAD IT in Azure China Cloud #18774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
yiliuTo
merged 23 commits into
Azure:master
from
yiliuTo:enable-spring-aad-IT-AzureChinaCloud
Feb 23, 2021
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
d76e08a
enable spring aad IT in AzureChina and add spring test template
yiliuTo b6f6812
add SubscriptionConfiguration
yiliuTo d6aebb7
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-java …
yiliuTo 2998870
update spring test templates
yiliuTo d093838
add clouds parameter
yiliuTo 6705f33
add TestResourceDirectories in templates
yiliuTo 76ee580
replace parameter with envvars
yiliuTo 5fd69b1
set cloud before login
yiliuTo eff9270
modify test user upn on china
yiliuTo 687583d
test when set cloud
yiliuTo 6b91d5a
add script for setting cloud env
yiliuTo 9cd283b
modify for run ondemand test twice
yiliuTo 1e82340
update base uri and graph uri for China
yiliuTo ea1e0da
modify ondemand and multitenant IT
yiliuTo 8bd2943
create AzureCloudUrls class
yiliuTo 810b5d7
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-java …
yiliuTo d61d724
configure base url for China cloud
yiliuTo 9efd304
remove comment
yiliuTo d8b4457
modify for checkstyle errors
yiliuTo 09ed6f1
move global env parameters to template
yiliuTo 143cc97
modify para of ondemand user name
yiliuTo 917bf51
update it controller name
yiliuTo 5e1c634
remove cosmos it temporarily
yiliuTo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
24 changes: 24 additions & 0 deletions
24
sdk/spring/azure-spring-boot/src/main/java/com/azure/spring/utils/AzureCloudUrls.java
This file contains hidden or 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,24 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| package com.azure.spring.utils; | ||
|
|
||
| /** | ||
| * Util class for Azure urls | ||
| */ | ||
| public class AzureCloudUrls { | ||
| public static String getBaseUrl(String cloudType) { | ||
| return cloudType.equals("Global") ? "https://login.microsoftonline.com/" | ||
| : "https://login.partner.microsoftonline.cn/"; | ||
| } | ||
|
|
||
| public static String getGraphBaseUrl(String cloudType) { | ||
| return cloudType.equals("Global") ? "https://graph.microsoft.com/" | ||
| : "https://microsoftgraph.chinacloudapi.cn/"; | ||
| } | ||
|
|
||
| public static String getServiceManagementBaseUrl(String cloudType) { | ||
| return cloudType.equals("Global") ? "https://management.azure.com/" | ||
| : "https://management.chinacloudapi.cn/"; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.