如何:允许使用 FBA 和 SharePoint 2010 以匿名用户身份进行访问

发布于 2024-09-27 05:06:12 字数 427 浏览 0 评论 0原文

我有一个带有自定义表单成员资格和角色提供程序的新网站,我需要允许匿名用户访问该网站(即浏览但不登录)。这是一个在声明身份验证下运行的新 SharePoint 2010 网站(显然)。

我遇到的问题是,尽管在中央管理和站点权限中允许匿名访问,但每当用户访问或尝试在站点中移动时,他们都会自动重定向到登录页面。事实上,似乎存在一个循环,正如下面的 url 所设想的那样(为了方便起见,我将主页设置为登录页面,因为登录控件是主页上的 Web 部件)。

/pages/default.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252FPages%252FDefault%252Easpx&Source=%2FPages%2FDefault%2Easpx

如何配置 2010 站点以允许匿名用户使用而不强制他们登录?

I have a new site with a custom forms membership and role provider, and I need to allow anonymous users to visit the site (i.e. to browse around but not log in). This is a new SharePoint 2010 site running under claims authentication (obviously).

Problem I have is that despite allowing anonymous access in both central admin and site permissions, the user is auto redirected to the login page whenever they visit or try to move around the site. In fact, there seems to be a loop, as envisaged by the url below (for ease, I set the homepage to be the login page, as the login control is a web part on the homepage).

/pages/default.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252FPages%252FDefault%252Easpx&Source=%2FPages%2FDefault%2Easpx

How do I configure a 2010 site to allow usage for anonymous users without forcing them to log in?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

摇划花蜜的午后 2024-10-04 05:06:12

修好了。即使对整个网站设置了匿名访问,该网站仍然会拒绝对本地样式库资源的请求。通过搜索共享点事件日志发现了这一点,特别是“访问被拒绝”和“Authenticate.aspx”。我编写的代码会在检查文件系统之前尝试在样式库中查找资源,因此可能会因为文件不存在而引发访问被拒绝,或者因为该库有自己的权限结构。 FML。

Fixed it. Even though Anonymous Access was set to the entire web site, the site was still throwing an access denied for a request for a resource from the local style library. Discovered this by trawling the sharepoint event logs, specifically for 'Access Denied' and 'Authenticate.aspx'. Code I had written would try to find a resource in the style library before checking the file system, so its possible the access denied was thrown because the file was not there, or because this library has its own permission structure. FML.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文