-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Support multiple clouds #7565
Conversation
Can one of the admins verify this patch? |
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.
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?
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 😁 |
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.