I have ASP.NET MVC web application running on server that is behind firewall. "Forms authenticate" is about to be replaced by Azure B2C. I used Microsoft's OWIN library.
I used following tutorial to get started with Azure B2C authentication.
Authentication is working locally on development machine, but when publishing to the server that is behind firewall, its timing out, when performing
public void SignIn()
{
if (!Request.IsAuthenticated)
{
HttpContext.GetOwinContext().Authentication.Challenge(new AuthenticationProperties { RedirectUri = "/" }, OpenIdConnectAuthenticationDefaults.AuthenticationType);
}
}
Is this network problem? What needs to be done on network side to make it work? Open firewall on some ports or use proxy to connect to the outside world(Azure B2C)? Should it be in both directions?