B2C redirect url issue with LB

Vikas Tiwari 771 Reputation points
2020-12-22T05:56:38.123+00:00

Hi @AmanpreetSingh-MSFT

Need you suggestion on following scenario:

b2c user login, redirect, sign out everything works fine if I host my app as public facing (i.e. deploy as webapp which can be accessed through plain internet) and It also work fine with localhost redirect.

But if deploy this app on VM inside private vnet I am unable to sign into user through b2c login screen. There is no error and it just reloads same page and user has not signed in. I have reply url and redirect url in config file)as internal LB with valid certificate.

As per my understanding there is no such requirement that app must be hosted as public facing when redirect from b2c registered app.

Is there any network requirement when redirecting from b2c after successful login? Can you please help me understand any other troubleshooting step here?

Thanks,
Vikas Tiwari

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,871 Reputation points Moderator
    2020-12-22T08:27:41.673+00:00

    Hi @Vikas Tiwari · Yes, it is not required that the app must be hosted as public facing and there are no specific network requirements when redirecting from b2c after successful login.

    The issue could be due to LB, as some load balancers do SSL offloading. LB logs should contain more details.

    You can also avoid using LB by using WAP (Web Application Proxy) or Azure App Proxy to expose the application (hosted on the internal server) to internet.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


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.