Google 服务器表单身份验证
我已在 Google Search Appliance 中设置表单身份验证。有没有办法让受保护页面的标题和摘要回来?目前,由于它们都被重定向到登录页面,因此所有搜索结果的标题都是“登录”。我正在使用 asp.net 和 .net Framework 3.5。
I've setup forms authentication in my Google Search Appliance. Is there a way to have the title and a summary come back for protected pages? Currently, since they are all redirected to the login page, all search results are titled as "Login." I'm using asp.net with the .net framework 3.5.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要:
在我们的一些客户网站上,我们采用了选项 2,部分原因是保护的动态性质(即过去 30 天内发布的文章是开放的,但您需要订阅才能查看存档),该选项不适合自己使用 web.config 设置。
我们有一个继承自 System.Web.UI.Page 的“基页”类,我们的所有页面都继承自该类。
在该类中,我们检查许多内容,包括调用客户端的 IP 地址和用户代理,如果这些与我们的搜索引擎匹配,我们将显示一个自定义页面布局,删除导航、页眉、页脚等内容(使用母版页),并显示一些我们用于过滤的附加元数据 - 这样搜索引擎就可以看到整个内容并为其建立索引。
如果这些检查失败,我们会检查用户是否经过身份验证,以及他们是否有有效的订阅。
如果他们没有有效的订阅或未经过身份验证,我们将显示页面摘要,以及登录或注册的调用(使用标准 ASP.NET 控件)。
You need to either:
On some of our client sites we've gone with option 2, partly because of the dynamic nature of the protection (i.e. articles published in the last 30 days are open, but you need a subscription to see the archive) which didn't lend themselves to using web.config settings.
We have a "Base Page" class that inherits from System.Web.UI.Page, and that all our pages inherit from.
In that class, we check a number of things, including the IP address and user agent of the calling client, if these match our search engine, we display a custom page layout that removes things like navigation, header, footer, etc (using a master page), and display some additional metadata that we use for filtering - this way the search engine sees and indexes the entire content.
If these checks fail, then we check to see if the user is authenticated, and if they have a vaild subscription.
If they don't have a valid subscription or aren't authenticated, we display a summary of the page, in place, along with a call to log in or register (using standard ASP.NET controls).
如果您的页面标题不是“登录”,则您可能没有正确设置它。文档的标题是 GSA 在爬网期间索引的内容。我之前在此处发布了一些完成 SSO 向导的提示:http://www.mcplusa.com/blog/2009/02/completing-the-sso-wizard-on-the-google-search-appliance/
If the title of your pages is something other than login, you probably haven't set it up correctly. The title of the document is what was indexed by the GSA during the crawl. I posted previously some tips to completing the SSO wizard here: http://www.mcplusa.com/blog/2009/02/completing-the-sso-wizard-on-the-google-search-appliance/