我有运行在防火墙后的服务器上的ASP.NET MVC web应用程序。“表单身份验证”即将被Azure B2C取代。我使用了Microsoft's OWIN library。
我使用下面的tutorial开始使用Azure B2C身份验证。
身份验证在开发计算机上本地工作,但当发布到防火墙后的服务器时,其超时,在执行
public void SignIn()
{
if (!Request.IsAuthenticated)
{
HttpContext.GetOwinContext().Authentication.Challenge(new AuthenticationProperties { RedirectUri = "/" }, OpenIdConnectAuthenticationDefaults.AuthenticationType);
}
}这是网络问题吗?在网络端需要做些什么才能使其正常工作?在某些端口上打开防火墙或使用代理连接到外部世界(Azure B2C)?它应该是双向的吗?
发布于 2017-08-21 17:20:06
它正在做HTTP302重定向,所以只要你能从那里通过端口443 (HTTPS)连接到https://login.microsoftonline.com,它就应该可以工作。
https://stackoverflow.com/questions/45792530
复制相似问题