Change verify param in OIDC to read better
This commit is contained in:
parent
8573535b8c
commit
90b6a534c1
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ class OIDCLoginService(OAuthService):
|
||||||
raise DiscoveryFailureException('OIDC server must be accessed over SSL')
|
raise DiscoveryFailureException('OIDC server must be accessed over SSL')
|
||||||
|
|
||||||
discovery_url = urlparse.urljoin(oidc_server, OIDC_WELLKNOWN)
|
discovery_url = urlparse.urljoin(oidc_server, OIDC_WELLKNOWN)
|
||||||
discovery = self._http_client.get(discovery_url, timeout=5, verify=not is_debugging)
|
discovery = self._http_client.get(discovery_url, timeout=5, verify=is_debugging is False)
|
||||||
if discovery.status_code // 100 != 2:
|
if discovery.status_code // 100 != 2:
|
||||||
logger.debug('Got %s response for OIDC discovery: %s', discovery.status_code, discovery.text)
|
logger.debug('Got %s response for OIDC discovery: %s', discovery.status_code, discovery.text)
|
||||||
raise DiscoveryFailureException("Could not load OIDC discovery information")
|
raise DiscoveryFailureException("Could not load OIDC discovery information")
|
||||||
|
|
Reference in a new issue