'AADSTS90014: The required field 'request' is missing from the credential' when login in with Azure B2C with Custom Identity Provider

Miroslaw Fiega 55 Reputation points
2023-01-17T22:29:37.9966667+00:00

We have an issue logging in to application with Azure B2C using Azure AD identity provider.

There is an user flow and custom policy added to use the provider. Everything seems to work correctly when testing the flow from the portal link, but trying the same with SPA application, result with an AADSTS90014 error:

AADSTS90014: The required field 'request' is missing from the credential

(using azure/msal-react@1.5.2 and azure/msal-browser@2.32.2)

The error is somehow unpredictable, sometimes the flow works correctly but most cases fails.

Both, the user flow and the custom policy seem to work te same.

There is an application insights added to custom policy, but there is no errors logged. The journey results with a valid token.

For the user flow, the local account log in is turned on, and this seems to work correctly.

What can cause this behawior? Where else I should check to find the root cause?

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

Accepted answer
  1. 2023-01-24T17:24:49.63+00:00

    Hello, the AADSTS90014 error can be caused by navigating back after succesfuly loging-in the Azure AD Identity Provider. To pinpoint what's happening and when please Capture a browser trace for troubleshooting during the full user flow and share your findings minus PII for additional help.


2 additional answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Durairaj r Durairaj r 0 Reputation points
    2024-05-10T06:14:38.0033333+00:00

    AADSTS90014: The required field 'request' is missing from the credential. Ensure that you have all the necessary parameters for the login request

    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.