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

Enable client key passphrase for JWT token authentication request #50

Merged
merged 2 commits into from
Mar 29, 2018

Conversation

rjprins
Copy link
Contributor

@rjprins rjprins commented Mar 28, 2018

  • Also add code coverage for SSL requests

This change is Reviewable

@rjprins rjprins requested a review from traut March 28, 2018 15:06

# session 'verify' attribute can be a bool or a path to a CA bundle:
if not isinstance(session.verify, bool):
ca_cert = session.verify
context = ssl.create_default_context(
ssl.Purpose.CLIENT_AUTH, cafile=ca_cert)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ca_cert might not be defined if session.verify is False

ca_cert variable in request_with_key_password might be undefined
before use.
@rjprins rjprins merged commit fb0f73b into master Mar 29, 2018
@rjprins rjprins deleted the fix-client-key-passphrase-for-jwt-auth branch March 29, 2018 09:51
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.

2 participants