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 multiple clouds #7565

Merged
merged 6 commits into from
Oct 7, 2019
Merged

Support multiple clouds #7565

merged 6 commits into from
Oct 7, 2019

Conversation

chlowell
Copy link
Member

@chlowell chlowell commented Oct 2, 2019

Closes #5850 by accepting an authority keyword argument to relevant credentials (i.e. all but the managed identity ones) and using it to construct authentication URLs.

@chlowell chlowell requested review from daviwil and bryevdv October 2, 2019 21:57
@chlowell chlowell requested a review from schaabs as a code owner October 2, 2019 21:57
@chlowell chlowell self-assigned this Oct 2, 2019
@adxsdk6
Copy link

adxsdk6 commented Oct 2, 2019

Can one of the admins verify this patch?

Copy link

@daviwil daviwil left a comment

Choose a reason for hiding this comment

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

Looks good!

This may be a place where we need to decide whether we want to be consistent between the language implementations. Both TypeScript and .NET take an authority host URI instead of just the bare host name. Only requiring the host name is definitely clearer/cleaner for users, but I wonder if leaving off the rest of the URI prefix makes it harder to mock?

@chlowell
Copy link
Member Author

chlowell commented Oct 4, 2019

I agree consistency is important, we should talk over the design. My thinking here is that the authority is the variable in the endpoints we use, so I want guardrails to steer users toward correct configuration without thinking about URLs. This doesn't complicate mocking, at least not in Python 😁

@chlowell chlowell merged commit cc4bdb0 into Azure:master Oct 7, 2019
@chlowell chlowell deleted the authority branch October 7, 2019 18:33
YijunXieMS pushed a commit to YijunXieMS/azure-sdk-for-python that referenced this pull request Oct 9, 2019
kristapratico pushed a commit to rakshith91/azure-sdk-for-python that referenced this pull request Oct 9, 2019
fengzhou-msft pushed a commit that referenced this pull request Nov 5, 2019
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.

Support multiple clouds
4 participants