Getting 400 Bad Request with Azure AD B2C OAuth 2.0 token service for

Arjun Dasgupta 21 Reputation points
2022-09-01T13:52:37.707+00:00

I am following the tutorial to [Set up a resource owner password credentials flow in Azure Active Directory B2C][1]

Here is my POST request in Postman -

https://

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,367 questions
{count} vote

4 answers

Sort by: Most helpful
  1. Nagy 10 Reputation points
    2023-05-24T09:21:12.2666667+00:00

    I finally got the ROPC flow to work after following the same doc as referenced above, having battled with that unhelpful 400 Bad Request for far too long.

    In the Registered App I created, I had to enable "Accounts in any identity provider or organization". I could not edit an existing app into this state by editing the manifest, despite what the screenshot below suggests, I had to create the app that way.

    oauth2AllowImplicitFlow has to be true as well of course.

    User's image

    BTW: after making changes to my registered app, I had to wait 5 - 10 mins for those changes to fully propagate.

    2 people found this answer helpful.

  2. Eduardo Campañó 5 Reputation points
    2023-02-12T16:01:37.6066667+00:00

    @Sandeep G-MSFT any news on this? I'm having the same issue. Tried with

    • passing in client_secret too
    • adding/removing params

    No way to understand what I'm missing

    1 person found this answer helpful.

  3. Peter Brachwitz | Rovecom 0 Reputation points
    2023-05-22T11:14:12.4466667+00:00

    I face the same issue. I tried building a ROPC user flow and I tried creating custom policies. When I omit the client_id I get the error that I should pass a client_id in de request. When I enter an invalid client_id I get the message the client_id is invalid.

    When I submit a valid client_id, no matter what my other parameters are, I simply get a '400 Bad Request' without any details.

    Completely stuck on this now


  4. John Carew 1 Reputation point
    2023-05-22T18:01:43.59+00:00

    I reported this as an issue with the docs here, please feel free to make comments there as well as it seems to get noticed there. The more comments there, the better.

    https://github.com/MicrosoftDocs/azure-docs/issues/108605

    0 comments No comments