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

Commit 8e484b2

Browse files
committed
wrong argument name.
Propagate verify_ssl
1 parent 754c21b commit 8e484b2

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

chrp/cprp.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def handle_error():
1616
cherrypy.response.status = 500
1717
cherrypy.response.body = [
1818
b"<html><body>Sorry, an error occured</body></html>"
19-
]
19+
]
2020

2121

2222
def get_symkey(link):
@@ -108,7 +108,7 @@ def index(self):
108108
'</head><body>'
109109
"<h1>Welcome to my OpenID Connect RP</h1>",
110110
'</body></html>'
111-
]
111+
]
112112
return '\n'.join(response)
113113

114114

@@ -133,7 +133,7 @@ def index(self, uid='', iss=''):
133133

134134
if link or uid:
135135
if uid:
136-
args = {'resource':uid}
136+
args = {'user_id': uid}
137137
else:
138138
args = {}
139139
try:
@@ -233,7 +233,7 @@ def implicit_hybrid_flow(self, op_hash='', **kwargs):
233233
op_hash)
234234

235235
def _load_HTML_page_from_file(self, path, value):
236-
if not path.startswith("/"): # relative path
236+
if not path.startswith("/"): # relative path
237237
# prepend the root package dir
238238
path = os.path.join(os.path.dirname(__file__), path)
239239

chrp/rp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,14 @@ def get_jwks(private_path, keydefs, public_path):
108108

109109
if args.insecure:
110110
_kj.verify_ssl = False
111+
_verify_ssl = False
112+
else:
113+
_verify_ssl = True
111114

112115
rph = RPHandler(base_url=_base_url, hash_seed="BabyHoldOn", keyjar=_kj,
113116
jwks_path=config.PUBLIC_JWKS_PATH,
114117
client_configs=config.CLIENTS,
115-
services=config.SERVICES)
118+
services=config.SERVICES, verify_ssl=_verify_ssl)
116119

117120
cherrypy.tree.mount(cprp.Consumer(rph, 'html'), '/', provider_config)
118121

0 commit comments

Comments
 (0)