Skip to content

Commit

Permalink
remove log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeUrban committed Jul 8, 2020
1 parent b865d35 commit bf4f210
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions polaris/polaris/sep24/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def authenticate_session_helper(r: Request):
if settings.LOCAL_MODE:
return

logger.error("in interactive authentication helper")
token = r.GET.get("token")
if not token:
# If there is no token, check if this session has already been authenticated,
Expand All @@ -103,7 +102,6 @@ def authenticate_session_helper(r: Request):
jwt_dict = jwt.decode(token, settings.SERVER_JWT_KEY, algorithms=["HS256"])
except InvalidTokenError as e:
raise ValueError(str(e))
logger.error(f"authenticating {jwt_dict['sub']}")

now = time.time()
if jwt_dict["iss"] != r.build_absolute_uri("interactive"):
Expand All @@ -120,7 +118,6 @@ def authenticate_session_helper(r: Request):
# JWT is valid, authenticate session
r.session["authenticated"] = True
r.session["account"] = jwt_dict["sub"]
logger.error(f"Authenticated for account {r.session['account']}")
try:
r.session["transactions"].append(jwt_dict["jti"])
except KeyError:
Expand Down

0 comments on commit bf4f210

Please sign in to comment.