1回答
- 新しい順
- 投票が多い順
- コメントが多い順
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
回答済み 1年前
関連するコンテンツ
- AWS公式更新しました 2年前
- AWS公式更新しました 1年前
- AWS公式更新しました 1年前