Skip to content

Commit

Permalink
On login, log idp and username
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-ide committed Jun 6, 2024
1 parent 18d3155 commit 7a68caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def login():
# log_info(f"cname: {cname}")
if auth_token is not None and cname is not None:
pasta_token = PastaToken(auth_token)
decoded_bytes = base64.b64decode(pasta_token.to_b64())
decoded_bytes = base64.b64decode(auth_token)
decoded_str = decoded_bytes.decode("utf-8")
try:
username = decoded_str.split("-")[0].split('*')[0]
Expand Down

0 comments on commit 7a68caa

Please sign in to comment.