Windows Sharepoint Services (WSS) 和表单身份验证 - 将这些凭据传递给其他 ASP.NET 表单身份验证应用程序

发布于 2024-07-13 06:33:57 字数 322 浏览 7 评论 0原文

抱歉,这里的标题很糟糕:)

我已为表单身份验证配置了 WSS。 我希望我的用户登陆 WSS 登录页面,登录,然后向他们提供指向其他 ASP.NET 应用程序的链接,这些应用程序也配置为表单身份验证。 我想实现一个类似单点登录的解决方案(我说“ish”的原因是我不打算像 SAML 那样实现 SSO 本身,而是实现不强迫用户的类似效果重新输入他们的凭据)。 您可以假设 WSS 使用的表单身份验证凭据与我想要提供链接的后续表单身份验证应用程序中的凭据相同。

这是否需要 WSS 端的代码,或者我可以在 ASP.NET/IIS 配置端以非编程方式实现此操作吗?

谢谢

Sorry for the poor title here :)

I have my WSS configured for Forms Authentication. I'd like my users to land on the WSS login page, log in, and then provide them links to other ASP.NET apps which also are configured for forms authentication. I'd like to achieve a single-signon-ish solution (the reason I say "ish" is I'm not looking to implement SSO per-se, as in SAML, but rather achieve the similar effect of not forcing the user to re-enter their credentials). You can assume the forms auth credentials that WSS uses are the SAME as those in the subsequent forms auth apps I want to provide the links to.

Does this require code on the WSS side, or can I make this happen non-programmatically on the ASP.NET/IIS configuration side?

Thanks

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

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

发布评论

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

评论(2

划一舟意中人 2024-07-20 06:33:57

Active Directory 上的表单身份验证提供程序是什么?

(例如)您的浏览器将记住您在第一个入口网站上的身份验证并为您携带它。

将其放在 ASP.NET 和 SharePoint 站点的 web.config 文件中:

    <connectionStrings>
      <add name="ADConnectionString" 
       connectionString=
       "LDAP://testdomain.test.com/CN=Users,DC=testdomain,DC=test,DC=com" />
     </connectionStrings>


<membership defaultProvider="MyADMembershipProvider">
  <providers>
    <add
       name="MyADMembershipProvider"
       type="System.Web.Security.ActiveDirectoryMembershipProvider, 
             System.Web, Version=2.0.0.0, 
             Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
       connectionStringName="ADConnectionString"
       connectionUsername="testdomain\administrator" 
       connectionPassword="password"/>
  </providers>
 </membership>

将确保它们都使用相同的身份验证提供程序,因此一旦浏览器获得有关其身份的信息,它将在整个过程中相应地回收它。

否则,请尝试联合身份验证服务。

这里是有关如何使用 ADFS 的教程

What is your Forms Authentication Provider?

On Active Directory (for instance) your browser will remember what your authentication was on the first entry site and carry it for you.

Having this on the web.config file of both ASP.NET and SharePoint sites:

    <connectionStrings>
      <add name="ADConnectionString" 
       connectionString=
       "LDAP://testdomain.test.com/CN=Users,DC=testdomain,DC=test,DC=com" />
     </connectionStrings>


<membership defaultProvider="MyADMembershipProvider">
  <providers>
    <add
       name="MyADMembershipProvider"
       type="System.Web.Security.ActiveDirectoryMembershipProvider, 
             System.Web, Version=2.0.0.0, 
             Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
       connectionStringName="ADConnectionString"
       connectionUsername="testdomain\administrator" 
       connectionPassword="password"/>
  </providers>
 </membership>

Will ensure they will both use the same authentication providers and therefore once the browser has the information about their identity, it will recycle it accordingly throughout.

Other wise, try a Federation Service.

Here is a tutorial on how to use ADFS

最冷一天 2024-07-20 06:33:57

嗨,里克,感谢您的回复。 我想我找到了答案。 表单身份验证与 cookie 有关,因此如果我将 ASP.NET Web 应用程序和 Sharepoint 虚拟目录配置为使用相同的身份验证 cookie,我应该在它们之间实现单点登录。 我要尝试一下。

更新:这很好用。

Hi Ric thanks for the response. I think I found my answer. Forms authentication is all about the cookie, so if I configure both the ASP.NET web app and the Sharepoint virtual directory to use the same authentication cookie, I should get single-sign on between them. I'm going to try.

UPDATE: This works nicely.

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