From 78ac2f77da6297b4ab2af3673d9cbc54716d15af Mon Sep 17 00:00:00 2001 From: nicktids Date: Fri, 6 Oct 2023 10:29:17 +0800 Subject: [PATCH] user and user_name miss match app as user index.html has user_name --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 5922f56..8c1b3eb 100644 --- a/app.py +++ b/app.py @@ -36,7 +36,7 @@ async def index(request: Request): return RedirectResponse(url=config.login_path) context = { "request": request, - "user": token.id_token_claims, + "user_name": token.id_token_claims, "version": msal.__version__, } return templates.TemplateResponse(name="index.html", context=context)