Error with Azure ADB2C user flow.

Satish Baniya 0 Reputation points
2023-09-20T19:51:15.26+00:00

I'm using Azure AD B2C. I've 2 separate workflows - 1.B2C_1_user_signUp and 2. B2C_1_ProfileEdit.

Once the user updates its record with recent information, I would like to redirect user back to my application. However, once the user updates the information on Azure AD B2C and when the user tries to go back to my application, it throws an error "The provided grant has not been issued for this endpoint. Actual Value : B2C_1_ProfileEdit and Expected Value : B2C_1_user_signup". Any suggestion?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,838 questions
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 24,746 Reputation points Microsoft Employee
    2023-09-21T17:16:15.8333333+00:00

    Hi @Satish Baniya , It seems like you are experiencing an error related to the mismatch between the expected and actual values of the grant issued for the endpoint. One possible reason for this error could be a misconfiguration in your application or user flow settings.

    To troubleshoot this issue, you can follow these steps:

    1. Double-check your application settings and make sure the correct user flows are configured for sign-up and profile editing.
    2. Ensure that the redirect URIs in your application settings match the ones specified in your user flows.
    3. Verify that your application is handling the tokens and responses correctly when redirecting users between Azure AD B2C and your application.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James

    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.