The client id <client-id-from-portal> provided in the request does not match client id 4829629c-4ae8-42a5-9def-bd28fbfd6992 registered in policy

Manas Purohit 0 Reputation points
2025-07-06T17:27:31.6233333+00:00

I am using Azure AD, registered an app, created user flow but not able to integrate it in my web app. In authConfig.js of my react app, I have entered the client Id specified in portal but it gives error while signing in: The client id <client-id-from-portal> provided in the request does not match client id 4829629c-4ae8-42a5-9def-bd28fbfd6992 registered in policy. Please help

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
777 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Divyesh Govaerdhanan 6,560 Reputation points
    2025-07-06T21:43:17.8966667+00:00

    Hello,

    Welcome to Microsoft Q&A,

    In Azure portal > Azure AD B2C > User flows > Select your user flow (e.g., B2C_1_signupsignin1) > Applications tab.

    • There you’ll see the list of applications (Client IDs) allowed to use this user flow.
    • Confirm the Client ID shown in the error (4829629c-...) is the one assigned to the user flow.
    • Your React app must use this exact Client ID in authConfig.js.

    https://learn.microsoft.com/en-us/azure/active-directory-b2c/configure-authentication-sample-spa-app

    https://learn.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-user-flows?pivots=b2c-user-flow

    Please upvote and accept the answer if it helps!!

    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.