1
votes

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?

2
Could you follow this tutorial to create your Azure AD b2c? - Nancy Xiong
@NancyXiong I can't, I was only given the "necessary" parameters and is supposed to run a sign in page in an android app using them. I did not make the tenant. - troubledsoul

2 Answers

1
votes

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.

3
votes

Use F12 to check whether there is any error information in the console. My error message is ... has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

If you see this kind of error message, please make sure the host server of static custom UI html file allows CORS.