Issue at Setup of adding a Custom Policy

Silviu_Mihai 31 Reputation points
2022-12-07T06:45:23.143+00:00

Hello,

I am using the following sample of code from Microsoft Identity Platform 2-call-api-b2c, but with the custom policy starter pack from custom policy.
For the custom policy starter pack I used Local Accounts.
This was recommended from B2CIEF Setup.
Also when I am trying to use change-sign-in-name, same issue I am encountering.

So for what I encountered I add the b2c domain name, and than redirects me to sign in with my email address and than I will encounter the issue bellow.
I am receiving the following error by using the Begin Setup that was recommended and I cannot understand where it is the issue:
This b2ciefsetupapp.azurewebsites.net page can’t be found
No webpage was found for the web address: https://b2ciefsetupapp.azurewebsites.net/Error?msg=QUFEU1RTNTAwMjAyOiBVc2VyIGFjY291bnQgJ3tFbWFpbEhpZGRlbn0nIGZyb20gZXh0ZXJuYWwgaWRlbnRpdHkgcHJvdmlkZXIgJ2xpdmUuY29tJyBpcyBub3Qgc3VwcG9ydGVkIGZvciBBUEkgdmVyc2lvbiAnMi4wJy4gTWljcm9zb2Z0IGFjY291bnQgcGFzcy10aHJ1IHVzZXJzIGFuZCBndWVzdHMgYXJlIG5vdCBzdXBwb3J0ZWQgYnkgdGhlIHRlbmFudC1pbmRlcGVuZGVudCBlbmRwb2ludC4NClRyYWNlIElEOiAyYjc3MmUyNC1hYzViLTQwMGMtOTEwZi03OTczZGZhMjI0MDINCkNvcnJlbGF0aW9uIElEOiAxODg4YzVhYi01MWJkLTRkOGYtYmJmNy1jYzg2MjNhMzczMGUNClRpbWVzdGFtcDogMjAyMi0xMS0yOSAwODo0NDo0NFo
HTTP ERROR 404

Issue is also addressed in the following topics: azure-ad-b2c-scripts and azure-ad-b2c-samples
What to check ? Where I could possibly set something wrong ?
Information Question: Could I use User Flow with a custom policy like change-sign-in-name
And is a must to add the custom starter pack ?

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,662 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shweta Mathur 27,936 Reputation points Microsoft Employee
    2022-12-12T10:12:54.46+00:00

    Hi @Silviu_Mihai ,

    Thanks for reaching out and glad you are able to resolve the issue.

    Apologies for the confusion you had while setting up the custom policy in your tenant. Thanks for sharing the steps here again for the users using B2C tenant for the first time.

    Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer to help other in the community looking for similar issue.

    269599-image.png

    Thanks,
    Shweta

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Silviu_Mihai 31 Reputation points
    2022-12-08T08:19:23.747+00:00

    The Usage part of the B2CIEF Setup part is a little bit confusing. After posting the same issue on different locations I got an answer, the answer can be seen here -> check link the see answer
    The steps are present also on that page, but I will also added it here.
    Steps:

    1. Go to the Azure portal, and select your B2C directory
    2. Create a new user, user@tenantname.onmicrosoft.com (Check Manage -> Users section, there you will see how you can create one)
    3. Make the new user a Global Admin (To create a Global Admin, you can do it through the user itself by selecting Assigned Roles or through Roles and administrators)
    4. Try the setup tool again, when asked to login, use your newly created account user@tenantname.onmicrosoft.com (this username it can be taken when you assigned the Global Admin to the user)
    5. You can read the usage steps again of the setup page and also you will be encountering another steps.

    I think they should rephrase the Usage Steps on the B2CIEF SETUP PAGE, for a better understanding of following the guide.
    I hope it helps. Good luck

    0 comments No comments