我按照下面的教程为我的 Claims SP2010 网站创建了自定义登录页面。
但我在 Firefox 中得到的只是 403 FORBIDDEN 文本。 IE 也没有运气。我在网上搜索了几个小时,但仍然没有成功。
有人遇到过这种情况吗?
谢谢。
最佳答案
根据引用的博客文章,您的自定义登录页面应继承自 FormsSignInPage 。我查看了 Reflector 中的类,没有看到任何会导致 403 错误的内容。然而,在查看其父级时,IdentityModelSignInPageBase ,我在 OnLoad 中找到了以下内容方法:
protected override void OnLoad(EventArgs e)
{
this.Context.Request.ServerVariables["FederationLoginPageRequest"] = "1";
if (this.CheckForFormsAccess
&& (AuthenticationMode.Forms != SPSecurity.AuthenticationMode))
{
SPUtilityInternal.Send403(this.Context);
}
if (!this.AllowCaching)
{
base.Response.Cache.SetNoStore();
}
base.ShowStandardControls = false;
base.OnLoad(e);
}
CheckForFormsAccess总是正确的,所以请确保您的 Authentication Mode设置为表单。
关于sharepoint-2010 - Sharepoint 2010 FBA 自定义登录页面 403 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4857619/