An Azure service that provides a hybrid, multi-cloud management platform for APIs.
Hello @Craig Chandler
Your testing strongly suggests the timeout is occurring in the managed APIM Developer Portal/MSAL integration, rather than in Azure AD B2C or Entra External Identities. The strongest evidence is that both identity providers fail at roughly the same ~30-second point, while the B2C flow itself remains active beyond 90 seconds when run directly.
Microsoft's current APIM documentation confirms that the managed Developer Portal uses MSAL for Microsoft Entra authentication and specifically instructs customers using the older ADAL integration to migrate to MSAL.
I don't see a documented APIM setting that exposes windowHashTimeout, iframeHashTimeout, loadFrameTimeout, or another MSAL timeout for the managed Developer Portal. Those MSAL client options therefore shouldn't be assumed configurable through APIM.
Given your reproducible cross-provider test, open an Azure Support case under API Management → Developer Portal, providing the ~30/33-second reproduction, browser trace/HAR, portal URL, APIM tier/region, and timestamps. Ask the APIM engineering team specifically whether the managed portal has a fixed MSAL interaction timeout.
Avoid changing the B2C/Entra user flows as a workaround. The direct-flow test indicates they aren't the component imposing the timeout.
Reference: Configure Microsoft Entra authentication for the APIM Developer Portal
At this point, Microsoft needs to confirm whether the ~30-second behavior is an undocumented managed-portal limitation or a product defect; don't self-host the portal solely to work around it until that is established.
Help make this community better for everyone: if this answer resolved your issue, please accept it or upvote it. If not, share more details in a comment so we can continue the discussion and find the right solution.