Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 45675ad

Browse files
committed
Reasonable default.
1 parent c39c7fe commit 45675ad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/oidcrp/oauth2/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ def __init__(self, state_db, client_authn_factory=None,
5353
"""
5454

5555
self.session_interface = StateInterface(state_db)
56+
57+
if httpc_params is None:
58+
httpc_params = {"verify": True}
59+
5660
self.http = httplib or HTTPLib(httpc_params)
5761

5862
if not keyjar:
@@ -78,7 +82,7 @@ def __init__(self, state_db, client_authn_factory=None,
7882

7983
self.service_context.service = self.service
8084
# just ignore verify_ssl until it goes away
81-
self.verify_ssl = httpc_params["verify"]
85+
self.verify_ssl = httpc_params.get("verify", True)
8286

8387
def do_request(self, request_type, response_body_type="", request_args=None,
8488
**kwargs):

0 commit comments

Comments
 (0)