1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
0
Hey,
I am not sure that gets populated but you could check this:
_httpContextAccessor.HttpContext.User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.GivenName)?.Value;
This example will get you the first name but you should be able to see all the claims in that User.Claims collection
Thanks
con risposta un anno fa
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa