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

support client certificates when communicating with REQ_URL #335

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

wasim-nihal
Copy link
Contributor

see #334

@wasim-nihal
Copy link
Contributor Author

Hi @ChristianGeie, could you please let me know if this is an acceptable feature by the community? I shall add some tests related to it.

# If method is not provided use GET as default
if method == "GET" or not method:
res = r.get("%s" % url, auth=auth, timeout=REQ_TIMEOUT, verify=REQ_TLS_VERIFY)
res = r.get("%s" % url, cert=cert, auth=auth, timeout=REQ_TIMEOUT, verify=REQ_TLS_VERIFY)
Copy link
Collaborator

Choose a reason for hiding this comment

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

can cert be None?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the default value is None for cert if not specified.
Reference: https://docs.python-requests.org/en/latest/_modules/requests/sessions/#Session

@tomrk-esteam8
Copy link
Collaborator

please add some tests :-)

@wasim-nihal
Copy link
Contributor Author

please add some tests :-)

Hi @tomrk-esteam8 / @ChristianGeie, I have added some tests related to this feature. Could you please take a look?

@github-actions github-actions bot added the stale close issues and PRs after 60 days of inactivity label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale close issues and PRs after 60 days of inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants