mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 17:17:02 +02:00
wip
This commit is contained in:
parent
cd022404f0
commit
2e1ff849cf
2 changed files with 12 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue