Search code examples
azureazure-ad-b2c

AADB2C90068: The provided application with ID is not valid against this service. Please use an application created via the B2C portal and try again


We have created Userflow policy(SignUp and SignIn) for the user authentication in Azure B2C tenant. When we try to run the user flow, we are unable to see our application in the list of application configured. When we try to hit the Azure B2C authorization endpoint provided on application basis, we are getting the following error AADB2C90068: The provided application with ID 'xxx-xx-xxx' is not valid against this service. Please use an application created via the B2C portal and try again.


Solution

  • Option 1: You have registered the app under Azure AD rather than Azure AD B2C.

    You should navigate to Azure AD B2C to register it. If you don't have an B2C tenant, just create it.

    enter image description here


    Although you can see the app under Azure AD B2C, it doesn't mean you created it here.

    An app registered in Azure AD will be shown under Azure AD B2C - App registrations (Preview) as well.

    Option 2: You have selected the wrong supported account type option.

    You should select Accounts in any organizational directory or any identity provider. (for authenticating users with user flows) when you created it. Otherwise it won't be shown in B2C User Flow.

    enter image description here