mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 17:47:02 +02:00
Logger cleanup
This commit is contained in:
parent
2f47272fff
commit
18e215dd08
1 changed files with 4 additions and 4 deletions
|
@ -87,7 +87,7 @@ class Client(oic.Client):
|
|||
extra_args=None,
|
||||
):
|
||||
"""Step 2: Construct a login URL at OP's domain and send the user to it."""
|
||||
logger.debug("create_authn_request() Creating the OpenID Connect authn request...")
|
||||
logger.debug("Creating the OpenID Connect authn request...")
|
||||
state = rndstr(size=32)
|
||||
try:
|
||||
session["state"] = state
|
||||
|
@ -150,7 +150,7 @@ class Client(oic.Client):
|
|||
|
||||
def callback(self, unparsed_response, session):
|
||||
"""Step 3: Receive OP's response, request an access token, and user info."""
|
||||
logger.debug("callback() Processing the OpenID Connect callback response...")
|
||||
logger.debug("Processing the OpenID Connect callback response...")
|
||||
state = session.get("state", "")
|
||||
try:
|
||||
# parse the response from OP
|
||||
|
@ -174,7 +174,7 @@ class Client(oic.Client):
|
|||
logger.error("Unable to process response %s for %s" % (error, state))
|
||||
raise o_e.AuthenticationFailed(locator=state)
|
||||
|
||||
logger.debug("callback() authn_response %s" % authn_response)
|
||||
logger.debug("authn_response %s" % authn_response)
|
||||
|
||||
if not authn_response.get("state", None):
|
||||
logger.error("State value not received from OP for %s" % state)
|
||||
|
@ -213,7 +213,7 @@ class Client(oic.Client):
|
|||
logger.error("Unable to get user info (%s) for %s" % (info_response.get("error", ""), state))
|
||||
raise o_e.AuthenticationFailed(locator=state)
|
||||
|
||||
logger.debug("_get_user_info() user info: %s" % info_response)
|
||||
logger.debug("user info: %s" % info_response)
|
||||
|
||||
return info_response.to_dict()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue