我可以使用 WIF 在 Gmail 和 Hotmail 等服务上进行身份验证吗?
Windows Identity Foundation 能否允许我们连接到服务并读取联系信息?
以下是 WIF 优势的一个想法:
- WIF 外部化身份验证, 将其传递给安全令牌 服务(STS)并减少 对个人开发者的要求
- WIF 还支持信任关系 服务信任任何人 由应用程序验证 访问它。
- WIF提供支持 用于用户的单点登录 (SSO) 通过在应用程序之间共享 STS。
- 开发人员还可以在运行时, 通过建立信任来支持双方 应用程序之间的关系 和服务或绕过用户的 凭证从应用程序到 服务。
Can Windows Identity Foundation allow us to connect to services and read contact information?
Here is a idea of how WIF advantages:
- WIF externalizes authentication,
passing it over to security token
services (STS) and reducing the
demands on individual developers - WIF
also supports trust relationships
where a service trusts anyone
authenticated by the application
accessing it. - WIF provides support
for a single sign-on (SSO) for users
by sharing STS among applications. - Developers can also, at run time,
support both by creating a trust
relationship between the application
and service or bypassing the user's
credentials from the application to
the service.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据您想做什么,答案是肯定的。
例如,使用与 WIF 联合的 Azure ACS,您可以连接到 Facebook 并获取您要求的所有 Facebook 用户属性(前提是用户在登录期间同意提供这些属性)。您还可以连接到 Google。
或者,您可以编写自己的自定义 STS,与 WIF 联合,该 WIF 在另一端具有某种接口,可以调用服务并传递详细信息,例如使用 DotNetOpenAuth 来处理 OpenID 协议。请参阅 StarterSTS 作为示例。
Depending on what you want to do, the answer is Yes.
Using Azure ACS federated to WIF e.g., you can connect to Facebook and get all the Facebook user attributes that you have asked for (provided that the user agrees during login to provide them). You can also connect to Google.
Or you can write your own custom STS federated to WIF that has some kind of interface on the other side that invokes a service and passes the details through e.g. using DotNetOpenAuth to handle the OpenID protocol. See StarterSTS as an example.
观看 以该视频为起点。有一个源代码和文档的链接,因此您可以查看该方向是否满足您的需求。
Watch this video as a starting point. There is a link for the source code and documentation, so you can see if the direction fulfils your needs.