.NET Core using Azure B2C Authentication, looking for the User Attributes such as @User.Identity.UserID after logged in
问题 I'm using .NET Core, with Azure B2C Authentication. On the project I'm developing, I can find the @User.Identity.Name, but I cant find the C# object name/path for the other "built in" User Attributes such as @User.Identity.UserID , @User.Identity.firstTimeLogging, @User.Identity.firstName. These Attribute are enabled in Azure AD. Thank you for your time. 回答1: You can access custom claims by including them in the token sent to the app or by querying the Azure AD Graph API (not the Microsoft