Windows 身份基础仅适用于内部应用程序/网站?

发布于 2024-12-09 05:15:33 字数 390 浏览 0 评论 0原文

我现在花了相当长的时间研究Windows Identity Foundation。我什至在 MSDN 上读过一本关于它的书的几个章节。

但我仍然对一件事感到困惑。 WIF 是否适合面向公众的网站身份验证,或者主要针对 Intranet/sharepoint 站点(处理由集成识别的用户的内部域) windows auth/active Directory 或类似的东西。目前,我们公司有许多网站,人们可以使用表单身份验证/自定义 asp.net 会员提供程序登录并根据数据存储进行身份验证。是否可以用WIF替代这个机制?如果是这样,有人有此类教程的链接吗?

我尝试过沿着这些线索寻找任何信息,但很难找到。

I have spent quite some time now looking at the Windows Identity Foundation. I even read a few chapters of a book on it on MSDN.

But I'm still confused about one thing. Is WIF appropriate for a public facing web site authentication or is this mainly targeted towards intranets/sharepoint sites, something that deals with internal domain where users are identified by integrated windows auth/active directory or something like that. Currently, we have many web sites for our company where people log in and are authenticated against a data store using forms authentication/custom asp.net membership provider. Is it possible to replace this mechanism with WIF? if so, does anyone have a link to such a tutorial.

I have tried looking for any information along these lines but it has been hard to find.

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

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

发布评论

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

评论(2

面如桃花 2024-12-16 05:15:33

原则上,Windows Identity Foundation 并不适合在“面向公众”的网站上使用,而且 WIF 本身也不与特定的身份验证机制绑定。但是,如果您正在考虑使用 Active Directory 联合服务作为您的身份提供程序,则问题是根据 AD 对用户进行身份验证将是您唯一的选择,因为这就是它支持的全部内容(尽管您可以插入自定义属性存储来从某些身份验证中检索声明值)。其他数据存储)。不过,您的 WIF 依赖方(即您的网站)不一定关心用户的身份验证方式,只关心用户是由其信任的 IDP 进行身份验证的。

因此,您的问题可能不是“启用 WIF”网站本身的问题,更可能是找到一个兼容的 IDP 的问题,该 IDP 支持针对 Active Directory 以外的其他内容进行身份验证,以便您可以使用当前使用的数据存储来进行身份验证。对用户进行身份验证。可以使用 ADFS 作为 WIF 依赖方和 SAML2 IDP 之间的“桥梁”(依赖方安全令牌服务器),例如 Shibboleth 可以使用数据库对用户进行身份验证,但配置这样的系统是一项重大挑战,因此您必须权衡用户通过单点登录应用程序可能获得的好处与大量建立和维护这样一个系统需要付出努力。

In principle, there's nothing about Windows Identity Foundation that makes it inappropriate for use on a "public-facing" website and WIF isn't in-itself tied to a particular authentication mechanism either. However, if you were considering using Active Directory Federated Services as your Identity Provider the problem would be that authenticating users against AD would be your only option since that's all it supports (although you can plug in a custom attribute store that retrieves claim values from some other datastore). Your WIF relying-party (i.e. your website) doesn't necessarily care how the user was authenticated, though, only that they were authenticated by an IDP that it trusts.

So your problem might not be that of "WIF-enabling" the websites as such, it may be more a question of finding a compatible IDP that supports authenticating against something other than Active Directory so that you can use the data store you currently use to authenticate users. It is possible to use ADFS as a "bridge" (a Relying-Party Security Token Server) between your WIF relying party and a SAML2 IDP like Shibboleth which can use a database to authenticate users, but configuring such a system is a significant challenge so you'd have to weigh up the benefits that your users might gain from single sign-on to your applications against the considerable effort it would take to set up and maintain such a system.

静若繁花 2024-12-16 05:15:33

是 - WIF 适用于面向公众的网站身份验证。 ADFS v2.0 仅针对 AD 进行身份验证。但是,您可以编写一个自定义 STS,根据您喜欢的任何内容进行身份验证。对于您的情况,如果使用数据存储,请查看针对 SQL DB 进行身份验证的 Identity Server

看看:

Yes - WIF appropriate for public facing web site authentication. ADFS v2.0 only authenticates against AD. However, you can write a custom STS that authenticates against anything you like. In your case, with a data store, have a look at Identity Server which authenticates against a SQL DB.

Have a look at:

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