Skip to content

Commit 846f26f

Browse files
author
Roland Hedberg
committed
If we don't want to verify the SSL certs then don't use them.
1 parent 6b7e037 commit 846f26f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/saml2/httpbase.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ def __init__(self, verify=True, ca_bundle=None, key_file=None,
8787
self.cookiejar = cookielib.CookieJar()
8888

8989
self.request_args["verify"] = verify
90-
if ca_bundle:
91-
self.request_args["verify"] = ca_bundle
92-
if key_file:
93-
self.request_args["cert"] = (cert_file, key_file)
90+
if verify:
91+
if ca_bundle:
92+
self.request_args["verify"] = ca_bundle
93+
if key_file:
94+
self.request_args["cert"] = (cert_file, key_file)
9495

9596
self.sec = None
9697
self.user = None

0 commit comments

Comments
 (0)