Azure AD B2C and OpenID Connect for native application

Ben Napper 0 Reputation points


I am trying to add authentication to my native mobile application using OpenID Connect protocol and my Azure AD B2C identity provider. I have followed the guide to create custom policies and added a Userinfo endpoint such that it appears in my discovery URL

I have also read the information on

I need the login to redirect to localhost:4000 where my app will finish the process. I have added localhost:4000 to the redirect URIs for my Azure application.

My issue is when I login using the oauth2 authorize endpoint to test the process using a URL with a format:


After login I don't receive a code - in the address bar the URL has changed to localhost:4000 (which is correct) but there is a "server_error AADB2C: An exception has occurred." message with a correlation ID of e05d852f-03a1-4ae5-ac86-d3d7bef1ac2e


What exception has occurred? Could you please assist?

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