Change verify param in OIDC to read better

This commit is contained in:
Joseph Schorr 2017-01-26 12:00:43 -05:00
parent 8573535b8c
commit 90b6a534c1

View file

@ -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")