Skip to content

Commit

Permalink
Show ID token in Demo App
Browse files Browse the repository at this point in the history
  • Loading branch information
gkapkowski committed Mar 17, 2023
1 parent 3708ba4 commit 4ded870
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/cryptoverse-login-demo/demo/src/demo/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def protected(request):
padded = payload + "=" * (4 - len(payload) % 4)
decoded = base64.b64decode(padded)
id_token = json.loads(decoded)
id_token = json.dumps(id_token, indent=2)
return render(
request, "demo/protected.html", {"user": request.user, "data": id_token}
)

0 comments on commit 4ded870

Please sign in to comment.