Cannot open policy screen when integrating web app with ad b2c

Phong Bui 1 Reputation point
2022-11-15T11:09:39.23+00:00

I got a problem when integrating asp.net mvc web app with Azure AD B2C using openid connect. Some clients opened the login page but others got the error: AADB2C90006: The redirect URI 'https://****.azurewebsites.net' provided in the request is not registered for the client id ****

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 37,206 Reputation points Microsoft Employee Moderator
    2022-11-17T00:05:11.01+00:00

    Hi @Phong Bui ,

    The reply url in your request is "https://.azurewebsites.net". To resolve this issue, please navigate to Azure AD B2C > App Registrations > Search for the application with the ID of the application in the request > Overview (or Authentication) > add a Redirect URI > update the Redirect URI to "https://.azurewebsites.net". It needs to match exactly what is configured for the application with no extra spaces or slashes.

    261174-image.png

    -

    If the information helped you, please Accept the answer. This will help us and other community members as well.

    0 comments No comments

Your answer

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