change display name to full name

This commit is contained in:
Muhammad Azeez 2021-01-19 13:16:17 +03:00
parent 690d946097
commit b42997a224

View File

@ -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);