-
Notifications
You must be signed in to change notification settings - Fork 206
Passing encrypted key as credential #270
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
Conversation
f614596
to
50800e2
Compare
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.
unit test? |
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.
Overall it looks good! Leave a couple minor comment below to hear your thoughts.
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.
Thanks! Per our discussion yesterday, please also add the two new dependencies into our setup.py (otherwise it would break). We can probably use the same version requirements used by Azure SDK.
After that, this would be good to go!
Thanks for adding the tests @rayluo ! Besides, I have also manually tested this scenario e2e using an encrypted private key and verified it works as expected. |
cc3b696
to
2ded277
Compare
Code refactoring Changing reference doc string Adding tests PR review 1 Adding dependencies and polishing code Python 2 compat
Adding missing arguments to api call Use cryptography lower bound as low as 0.6 Add test cases for _str2bytes() Choose cryptography upper bound as <4
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.
Thanks Abhi! We finished this together, in pair-programming style! :-D
Usage: We add one more optional field
passphrase
in the existingclient_credential
parameter ofConfidentialClientApplication
. The docs will also be updated here