❔ How can the guid claim out of the http context

Here is my token information and I use this code to get the guid but nothing return
var guid = HttpContext.User.FindFirst("guid")?.Value;
var guid = HttpContext.User.FindFirst("guid")?.Value;
3 Replies
cumslvt13
cumslvt132y ago
Probably HttpContext.User.ClaimsPrincipal.Claims
TotechsStrypper
TotechsStrypperOP2y ago
No I got it I didn't include this [Authorize(AuthenticationSchemes = "Bearer")] On the head of my controller
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server