androidazureopenidazure-ad-b2cappauth

Azure AD B2C login - "contains script errors preventing it from being loaded"


I followed this sample app from Integrate Azure AD B2C into an Android application and replaced the configuration parameters for my Azure AD B2C tenant, however I got the errors "contains script errors preventing it from being loaded

This is the URL that it generated, is it wrong or something? I'm new to this so I don't know much :(

login.microsoftonline.com/signintest.onmicrosoft.com/oauth2/v2.0/authorize?p=b2c_1_signin&redirect_uri=ran%3dom%lett%3ers%idk%why&client_id=clientid&response_type=code&state=_JhayuFI4QGD1bjElOHnvg&scope=openid&code_challenge=uiXfg8c9XEFiHFRvjjVSAbCiRNJf5CeXDFXXN0qlj_U&code_challenge_method=S226

I ran to this similar Stackoverflow question but I don't know what he meant by "An Azure AD B2C application should be created using the Azure AD B2C blade of the Azure Portal"

I tried to find out what it meant by myself but I didn't find anything. What does it mean?


Solution

  • An Azure AD B2C application should be created using the Azure AD B2C blade of the Azure Portal

    This means you should create the Azure AD B2C app in Azure AD B2C tenant instead of Azure AD tenant. If you have not an Azure AD B2C tenant, you could create it first. Then register your app in that B2C tenant. You could strictly follow the Steps to Run.

    Ref: Tutorial: Create an Azure Active Directory B2C tenant

    Hope this helps.