diff --git a/CSharp/AuthorizationServer/Quickstart/Account/AccountController.cs b/CSharp/AuthorizationServer/Quickstart/Account/AccountController.cs index be82f3d..8fbf748 100644 --- a/CSharp/AuthorizationServer/Quickstart/Account/AccountController.cs +++ b/CSharp/AuthorizationServer/Quickstart/Account/AccountController.cs @@ -147,7 +147,7 @@ namespace IdentityServerHost.Quickstart.UI // issue authentication cookie with subject ID and username var isuser = new IdentityServerUser(user.SubjectId) { - DisplayName = user.Username + DisplayName = user.Claims.First(c => c.Type == JwtClaimTypes.Name).Value }; await HttpContext.SignInAsync(isuser, props);