🔄refactor: 使用OpenIddict 重构Identity

This commit is contained in:
yubaolee
2026-06-25 23:42:43 +08:00
parent 7a34fa7c51
commit 5e6ca18770
42 changed files with 697 additions and 2074 deletions

View File

@@ -1,9 +1,8 @@
@using IdentityServer4.Extensions
@{
@{
string name = null;
if (!true.Equals(ViewData["signed-out"]))
{
name = Context.User?.GetDisplayName();
name = Context.User?.Identity?.IsAuthenticated == true ? Context.User.Identity.Name : null;
}
}
<!DOCTYPE html>