This commit is contained in:
David Kennedy 2023-12-06 13:34:13 -05:00
parent cd022404f0
commit 2e1ff849cf
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 12 additions and 3 deletions

View file

@ -162,7 +162,7 @@ class Client(oic.Client):
logger.error(err)
logger.error("Unable to parse response for %s" % state)
raise o_e.AuthenticationFailed(locator=state)
logger.info(authn_response)
# ErrorResponse is not raised, it is passed back...
if isinstance(authn_response, ErrorResponse):
error = authn_response.get("error", "")
@ -207,7 +207,7 @@ class Client(oic.Client):
logger.error(err)
logger.error("Unable to request user info for %s" % state)
raise o_e.AuthenticationFailed(locator=state)
logger.info(info_response)
# ErrorResponse is not raised, it is passed back...
if isinstance(info_response, ErrorResponse):
logger.error("Unable to get user info (%s) for %s" % (info_response.get("error", ""), state))