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.
'AADSTS90014: The required field 'request' is missing from the credential' when login in with Azure B2C with Custom Identity Provider
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 email@example.com and firstname.lastname@example.org)
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?