Skip to content

Updated AzureCloud endpoint; Added support for AzureUSGov & AzureGermany#3182

Merged
shahabhijeet merged 3 commits intoAzure:vs17Devfrom
horrion:vs17Dev
May 12, 2017
Merged

Updated AzureCloud endpoint; Added support for AzureUSGov & AzureGermany#3182
shahabhijeet merged 3 commits intoAzure:vs17Devfrom
horrion:vs17Dev

Conversation

@horrion
Copy link
Copy Markdown
Contributor

@horrion horrion commented May 8, 2017

Description

View this for further information. This is the Pull Request for the vs17Dev branch.


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

SDK Generation Guidelines

  • If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
  • The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as a link to the swagger spec, used to generate the code.
  • The project.json and AssemblyInfo.cs files have been updated with the new version of the SDK.

@msftclas
Copy link
Copy Markdown

msftclas commented May 8, 2017

@horrion,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.

It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

@msftclas
Copy link
Copy Markdown

msftclas commented May 8, 2017

@horrion, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.

Thanks, Microsoft Pull Request Bot

private static readonly ActiveDirectoryServiceSettings AzureSettings = new ActiveDirectoryServiceSettings
{
AuthenticationEndpoint= new Uri("https://login.windows.net/"),
AuthenticationEndpoint= new Uri("https://login.microsoftonline.com/"),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@horrion any reason this is needed? What is causing your make this change? Would like to understand?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refer to @markcowl 's and my comments here: #3030

login.microsoftonline.com is the new ARM endpoint that supports both the ARM and the Classic environment. As far as I know people are encouraged to use the new endpoint.

ValidateAuthority = true
};

private static readonly ActiveDirectoryServiceSettings AzureUSGovernmentSettings = new ActiveDirectoryServiceSettings
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@horrion
Have you tested if these changes are required and will work?
Where are the tests for this newly added properties?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would you like me to test these changes?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@horrion Apart from the endpoints (and thank you for adding the ARM endpoint), I am more interested to know if these endpoints do work for authenticating against various cloud environments? And hence wanted to know if you have used the piece of code that you have contributed?
Or was your intention to simply add those endpoints?
Because majority of our Authentication scenarios are via our TestFramework when automating our tests
https://github.com/Azure/azure-sdk-for-net/blob/vs17Dev/src/SdkCommon/TestFramework/ClientRuntime.Azure.TestFramework/TestEnvironment.cs#L254

@shahabhijeet shahabhijeet merged commit 9985e65 into Azure:vs17Dev May 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants