How to get current login username and email address? The identity provider for the account is the username, not the email. The username is not returned as a claim in any of the rules such as login, registration, etc. A user attribute of type "SpouseName" can be returned as a login requirement, where I can access through ((ClaimsIdentity)User.Identity).FindFirst("extension_SpouseName").Value This is an MVC application.
source share