BigggMoustache
❔ JWT Authentication: Name goes to claims not identity.Name
I'm actually not entirely sure. I'm guessing httpcontext which has information from authorization middleware. I have not read those in total but have referenced them when trying to figure this out. They don't show this particular process in detail, that us unpacking a JWT and applying to a claimsidentity.
48 replies
❔ JWT Authentication: Name goes to claims not identity.Name
the
context.User.Identity
is overwritten by var state = new AuthenticationState(user);
. Here user
holds a claim type Name
so I'm wondering why it's not overwriting the User.Identity.Name
as shown in the linked tutorial and instead making a new claim under context.User.Claims
.48 replies