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

Certificate problems behind corperate firewall #24

Closed
Moxie1776 opened this issue Jul 9, 2019 · 3 comments
Closed

Certificate problems behind corperate firewall #24

Moxie1776 opened this issue Jul 9, 2019 · 3 comments

Comments

@Moxie1776
Copy link

I am behind a corporate firewall. Anytime a production uses certificate validate it fails and I have to disable the verification. I have been unable to figure out where I would add the verify=False to the init.py module. I've tried adding it in several location. Any assistance would be appreciated.

@wchatx
Copy link
Owner

wchatx commented Jul 9, 2019

Thanks for the message, @Blue1791. You're right, I've worked with several clients with stringent corporate firewalls so this functionality is valuable.

I just deployed version 1.2.1, which allows passing the requests keyword arguments verify and proxies into the DirectAccessV1 and DirectAccessV2 classes.

Example:

    d2 = DirectAccessV2(
        api_key=DIRECTACCESS_API_KEY,
        client_id=DIRECTACCESS_CLIENT_ID,
        client_secret=DIRECTACCESS_CLIENT_SECRET,
        retries=5,
        backoff_factor=1,
        verify=False
    )

Upgrade your direct-access-py module with pip install --upgrade directaccess to take advantage of this. Please report back with any problems...I'll close this issue in a few weeks otherwise.

@Moxie1776
Copy link
Author

Moxie1776 commented Jul 12, 2019 via email

@wchatx
Copy link
Owner

wchatx commented Jul 30, 2019

Closing this issue. Feel free to reopen if there's any problems implementing this.

@wchatx wchatx closed this as completed Jul 30, 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

No branches or pull requests

2 participants