Skip to content
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

Support KnownAuthorities across all languages #1054

Closed
jongio opened this issue Feb 29, 2020 · 4 comments
Closed

Support KnownAuthorities across all languages #1054

jongio opened this issue Feb 29, 2020 · 4 comments
Assignees
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library. enhancement New feature or request

Comments

@jongio
Copy link
Member

jongio commented Feb 29, 2020

Right now, when a user wants to work with an alternate cloud they have to specify the authority host in code.

Python has implemented a KnownAuthorties object that allows a user to reference the known other cloud authorities via a const like this:

credential = DefaultAzureCredential(authority=KnownAuthorities.AZURE_GOVERNMENT)

All of the other languages require the user to specify the full url to the known authority, like this:

new EnvironmentCredentialBuilder().authorityHost("https://login.microsoftonline.us/").build()

Ideally, we are consistent across all langs for this.

I have filed issues for the other 4 langs:

JS: Azure/azure-sdk-for-js#7597
.NET: Azure/azure-sdk-for-net#10228
Java: Azure/azure-sdk-for-java#8627
Go: Azure/azure-sdk-for-go#7745

@jongio
Copy link
Member Author

jongio commented Feb 29, 2020

Related: Azure/azure-sdk-for-java#8626 - [FEATURE REQ] Support setAuthorityHost with CredentialBuilderBase #8626

@adrianhall
Copy link
Member

Sounds like we should put this in the general guidelines as well, so that future implementors of a new language will take it into consideration. I suspect this belongs in the "azurecore.md" file. Want to take a swag at a PR for this, @jongio?

@jongio
Copy link
Member Author

jongio commented Mar 2, 2020

Will do.

@joshfree joshfree added Azure.Identity Client This issue points to a problem in the data-plane of the library. enhancement New feature or request labels Mar 2, 2020
@jongio
Copy link
Member Author

jongio commented May 7, 2020

This is now supported in all langs. Thanks team!

@jongio jongio closed this as completed May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants