B2C login custom template hosted on my app in Azure Docker is displaying a blank page

Andrey Kuznetsov 65 Reputation points
2023-01-17T15:58:43.92+00:00
I have a Blazor server app hosted in Azure registries using a B2C login. This is working fine. 
I created my own template to change the B2C login UI. 
A simple cshtml and controller were created in the same app 
(I am not using Azure blob) with code:



    


    Tenant2 template page
    <div></div>


The CORS problem was solved. Now If I use my template then the B2C login page is blank. 
No errors in the dev tool console. The source code of the B2C login page has <div></div> 
in it plus some HTML, CSS, and js code with a size of around 166kb. 
Looks like the B2C js is not running for some reason. Any help is appreciated.
Thanks.
Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Accepted answer
  1. Givary-MSFT 35,626 Reputation points Microsoft Employee Moderator
    2023-01-31T11:55:12.91+00:00

    @Andrey Kuznetsov I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! 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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.