Skip to content

Support multiple clouds#7565

Merged
chlowell merged 6 commits intoAzure:masterfrom
chlowell:authority
Oct 7, 2019
Merged

Support multiple clouds#7565
chlowell merged 6 commits intoAzure:masterfrom
chlowell:authority

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 bryevdv and daviwil 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