我有一个使用fba配置的Web应用程序,并在其中设置了AAM:一个用于内部用户/区域(http://xyz.com)和一个用于外部用户/区域(https://xyz.com)

我已将Web应用程序扩展为使用SSL和自定义登录页面,并启用匿名访问(这是用户进入自定义登录页面)。

我能够浏览到AAM指定的URL。 但是,当我浏览到 https://xyz.com 时,我没有看到自定义登录页面但是只是一个泛型页面(我的自定义解决方案),它显示“无经验验证的用户”。 更重要的是,如果我要在 https://xyz.com上,我就可以进入登录页面/_layouts/customlogin.aspx

它从那里的一切都很好。

请注意,当我删除外部区域的匿名访问时,用户可以进入登录页面,但无法导航或被拒绝访问(单击页面只需刷新)到注册和忘记密码页面登录页面上的链接。

如何在用户浏览到 https://xyz.com 时,以便如何修复此URL登录屏幕并访问忘记密码并在单击相应链接时注册页面?

感谢

有帮助吗?

解决方案

You should remove anonymous access on the web application's Extranet zone, and allow access to the login page in your web.config file. With anonymous access enabled there is no validated authentication required so it would make sense that your login page would not be displayed (the user is already authenticated as anonymous).

In your web.config try something like:

<location path="_layouts/MyLogin.aspx">
  <system.web>
    <authorization>
      <allow users="*"/>
    </authorization>
  </system.web>
</location>

This will grant authorization (not authentication) to anonymous users accessing the site. Also, this doesn't open up the rest of the site to anonymous users, as opposed to enabling anonymous authentication in Central Administration.

许可以下: CC-BY-SA归因
scroll top