Azure AD B2C second ROPC flow is returning AADB2C90225 error (username or pass provided in the request are invalid) although credentials are correct.

Javier Gutiérrez 25 Reputation points
2024-01-15T23:08:00.38+00:00

(I didn't find "Azure AD B2C" tag, so I put Azure App Service instead).

I'm implementing a second ROPC flow in my Azure AD B2C Policies for a new authentication endpoint used to get an access token against some user credentials (users that differ from the user of my original auth endpoint) in my API. The problem is, having passed through the documentation here at https://learn.microsoft.com/en-us/azure/active-directory-b2c/add-ropc-policy?tabs=app-reg-ga&pivots=b2c-custom-policy implementing what was left to implement (basically a different user journey), I'm getting an AADB2C90225 error claiming that the username or password in the request are invalid.

¿What could it be?

Microsoft Entra
{count} votes

Accepted answer
  1. Shweta Mathur 30,266 Reputation points Microsoft Employee
    2024-01-16T08:23:40.0566667+00:00

    Hi @Javier Gutiérrez ,

    Thanks for reaching out.

    Could you please check that user account you are using is not fall under below:

    • ROPC doesn’t work when there's any interruption to the authentication flow that needs user interaction. For example, when a password expires or needs to be changed, multifactor authentication is required, or when more information needs to be collected during sign-in (for example, user consent).
    • ROPC supports local accounts only. Users can’t sign in with federated with Identity providers like Microsoft, Google+, Twitter, AD-FS, or Facebook.
    • Session Management, including keep me signed in, isn't applicable.

    Did you try that user account is working for your first ROPC flow?

    Please confirm so we can help you further.

    Thanks,

    Shweta


0 additional answers

Sort by: Most helpful

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.