-
Notifications
You must be signed in to change notification settings - Fork 3k
Key Vault clients use azure-identity credentials #5694
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can one of the admins verify this patch? |
3d4d843
to
f25486d
Compare
1189e4b
to
06d513b
Compare
0a9b063
to
de410f6
Compare
schaabs
reviewed
Jun 7, 2019
sdk/keyvault/azure-security-keyvault/azure/security/keyvault/vault_client.py
Outdated
Show resolved
Hide resolved
schaabs
reviewed
Jun 7, 2019
sdk/keyvault/azure-security-keyvault/azure/security/keyvault/aio/_internal.py
Outdated
Show resolved
Hide resolved
schaabs
approved these changes
Jun 7, 2019
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.
5d5338e
to
94d2390
Compare
d256621
to
3a9dc8a
Compare
rajivnandivada
pushed a commit
to rajivnandivada/azure-sdk-for-python
that referenced
this pull request
Jul 3, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This closes #5551 and resolves #4877 by refactoring clients to share a common
__init__
which acceptsazure-identity
credentials, builds a pipeline including the token auth policy fromazure-core
, and allows specifying a Key Vault API version. The a/sync inits could be combined; I kept them separate in case we decide to spin off async packages.I also refactored
VaultClientPreparer
to useazure-identity
's environment credentials in live tests, and added a preparer and test case class for async tests.There are a few small miscellaneous fixes here as well, including one that closes #5604.
Work remains on the tests. The live tests are unreliable. Making them reliable requires larger changes I don't want to cram into this PR (tracked by #5693). Also, I replaced
ServicePrincipalCredentials
in examples withazure-identity
'sClientSecretCredential
, but examples should show the default credential instead. That doesn't exist yet, so it's also work for a future PR (tracked by #5006).