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

Commit 232e2db

Browse files
committed
Fixed a bug.
Deal with issuer only supporting http.
1 parent 2b42c93 commit 232e2db

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/oidcservice/service.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def get_request_parameters(self, request_args=None, method="",
310310
request_body_type = self.request_body_type
311311

312312
request = self.construct_request(request_args=request_args, **kwargs)
313-
LOGGER.debug("Request: ", request)
313+
LOGGER.debug("Request: %s", request)
314314
_info = {'method': method}
315315

316316
_args = kwargs.copy()
@@ -391,6 +391,11 @@ def gather_verify_arguments(self):
391391
'iss': self.service_context.issuer,
392392
'keyjar': self.service_context.keyjar,
393393
'verify': True}
394+
395+
if self.service_name == "provider_info":
396+
if self.service_context.config["issuer"].startswith("http://"):
397+
kwargs["allow_http"] = True
398+
394399
return kwargs
395400

396401
def _do_jwt(self, info):

0 commit comments

Comments
 (0)