BigggMoustache
BigggMoustache
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ 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
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
Microsoft.AspNetCore.Components.Authorization too
48 replies
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
for the identity claims creation it's System.Security.Claims and
48 replies
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
oh one sec
48 replies
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
this is aspnet identity
48 replies
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
ClaimsPrincipal(IEnumerable<ClaimsIdentity>) Initializes a new instance of the ClaimsPrincipal class using the specified claims identities.
48 replies
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
gotcha sorry for being dense
48 replies
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
sorry I'm dense. Yeah there are.
48 replies
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
the identity docs? oh okay lmao
48 replies
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
like the code I'm writing? I'm writing this. lol.
48 replies
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
oh the example code?
48 replies
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
idk what you mean
48 replies
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
I'm not really concerned with any particulars at this moment other than why the JWT isn't overriding the default claims or whatever you call them and instead adding claims
48 replies
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
Oh well neither do I 🤣
48 replies
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
yeah
48 replies
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ 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
CC#
Created by BigggMoustache on 8/26/2023 in #help
❔ JWT Authentication: Name goes to claims not identity.Name
Everything is exactly the same as the video aside me checking claims in html, but his claim overwrites the @context.User.Identity.Name Thanks for any help given!
48 replies
CC#
Created by BigggMoustache on 8/13/2023 in #help
❔ Registered Services ArMissing
Here's the top of one of the services that don't show up
namespace DiscordClone.Client.Services
{
public class UserAuthenticationStateProvider : AuthenticationStateProvider, IDisposable
{
namespace DiscordClone.Client.Services
{
public class UserAuthenticationStateProvider : AuthenticationStateProvider, IDisposable
{
3 replies
CC#
Created by BigggMoustache on 3/26/2023 in #help
✅ IEnum and IQueryable usage.
Well that worked for now. Thanks for the help. I could have sworn I tried this at the beginning and it didn't work but 🤷🏻‍♂️ . Probably something goofy like another typo.
17 replies
CC#
Created by BigggMoustache on 3/26/2023 in #help
✅ IEnum and IQueryable usage.
I'm finding there isn't an option for this in EFcore. Should I just ToUpper or something before saving to database and search accordingly?
17 replies