Share via

Issue with Azure B2C Custom Profile: Repeated Redirect with extension_customerid and Authorization Failure

Palani Muniyappan 0 Reputation points
2026-05-13T00:40:33.9933333+00:00

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.

Microsoft Security | Microsoft Identity Manager
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.