-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Added support for AzureGermanCloud #3030
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ public sealed class ActiveDirectoryServiceSettings | |
|
|
||
| private static readonly ActiveDirectoryServiceSettings AzureSettings = new ActiveDirectoryServiceSettings | ||
| { | ||
| AuthenticationEndpoint= new Uri("https://login.windows.net/"), | ||
| AuthenticationEndpoint= new Uri("https://login.microsoftonline.com/"), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. login.windows.net is preferred.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @markcowl Could you please explain why the "old" endpoint is preferred? I thought everything that depends on Azure Resource Manager has to go through the new endpoint (login.microsoftonline.com).
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @horrion You are absolutely right, I was reading this entirely the wrong way |
||
| TokenAudience = new Uri("https://management.core.windows.net/"), | ||
| ValidateAuthority = true | ||
| }; | ||
|
|
@@ -28,6 +28,20 @@ public sealed class ActiveDirectoryServiceSettings | |
| ValidateAuthority = true | ||
| }; | ||
|
|
||
| private static readonly ActiveDirectoryServiceSettings AzureUSGovernmentSettings = new ActiveDirectoryServiceSettings | ||
| { | ||
| AuthenticationEndpoint = new Uri("https://login.microsoftonline.com/"), | ||
| TokenAudience = new Uri("https://management.core.usgovcloudapi.net/"), | ||
| ValidateAuthority = true | ||
| }; | ||
|
|
||
| private static readonly ActiveDirectoryServiceSettings AzureGermanCloudSettings = new ActiveDirectoryServiceSettings | ||
| { | ||
| AuthenticationEndpoint = new Uri("https://login.microsoftonline.de/"), | ||
| TokenAudience = new Uri("https://management.core.cloudapi.de/"), | ||
| ValidateAuthority = true | ||
| }; | ||
|
|
||
| /// <summary> | ||
| /// Gets the serviceSettings for authentication with Azure | ||
| /// </summary> | ||
|
|
@@ -38,6 +52,16 @@ public sealed class ActiveDirectoryServiceSettings | |
| /// </summary> | ||
| public static ActiveDirectoryServiceSettings AzureChina { get { return AzureChinaSettings; } } | ||
|
|
||
| /// <summary> | ||
| /// Gets the serviceSettings for authentication with Azure US Government | ||
| /// </summary> | ||
| public static ActiveDirectoryServiceSettings AzureUSGovernment { get { return AzureUSGovernmentSettings; } } | ||
|
|
||
| /// <summary> | ||
| /// Gets the serviceSettings for authentication with Azure Germany | ||
| /// </summary> | ||
| public static ActiveDirectoryServiceSettings AzureGermany { get { return AzureGermanCloudSettings; } } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets the ActiveDirectory Endpoint for the Azure Environment | ||
| /// </summary> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@horrion We have no plans to update this library, so please revert this.