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

Commit b762395

Browse files
committed
Verify if preferred to verify_ssl.
1 parent d951304 commit b762395

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/oidcendpoint/util.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,15 @@ def lv_unpack(txt):
133133

134134

135135
def get_http_params(config):
136-
params = {"verify": config.get('verify_ssl')}
136+
_verify_ssl = config.get('verify')
137+
if _verify_ssl is None:
138+
_verify_ssl = config.get('verify_ssl')
139+
140+
if _verify_ssl in [True, False]:
141+
params = {"verify": _verify_ssl}
142+
else:
143+
params = {}
144+
137145
_cert = config.get('client_cert')
138146
_key = config.get('client_key')
139147
if _cert:

0 commit comments

Comments
 (0)