A tool for managing user identities, credentials, and access across on-premises and cloud environments
Issue with Azure B2C Custom Profile: Repeated Redirect with extension_customerid and Authorization Failure
I have implemented Azure B2C custom profiles to redirect NY state users to use MFA, and for users from all other states to validate through SMS. If I add the extension_customerid attribute, the system repeatedly redirects to the login page. If I remove this customerid reference, the authentication proceeds; however, when checking UserClaims, it shows authenticated = true but I receive the following error:
dotnet.runtime.pu7sbjsy59.js:3 info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
Authorization failed. These requirements were not met:
DenyAnonymousAuthorizationRequirement: Requires an authenticated user.
I am not able to succeed, In my application, I need to user cusotmerid from userclaim.