mirror of
https://github.com/ditkrg/AuthorizationServerDemos.git
synced 2026-01-22 21:46:58 +00:00
change display name to full name
This commit is contained in:
parent
690d946097
commit
b42997a224
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user