通过 ADFS 对 Web 服务的用户进行身份验证
我希望有人能够证实我对 ADFS 与 WCF 的理解(或缺乏!)。
我什至画了一张漂亮的图表。
“Bob”使用托管在客户域上的 Web 应用程序。客户端通过 AD 对 Bob 进行身份验证。但是,该 Web 应用程序使用由供应商开发和托管的 WCF 服务。
客户和供应商之间已经建立了信任。
我的问题 - 当 Web 应用程序使用 WCF 服务时,我希望 WCF 服务重新验证“Bob”,然后 WCF 服务可以使用客户端上的 ADFS 服务器返回的声明。< /strong>
这张图对吗?
I was hoping that someone could confirm my understanding (or lack thereof!) of ADFS with respect to WCF.
I've even drawn a pretty diagram.
"Bob" uses a web app, which is hosted on Client's domains. Client authenticates Bob via AD. However the web app uses a WCF service developed and hosted on Supplier.
There has been trust established between Client and Supplier.
My question - when the Web App uses the WCF Service, I would like the WCF service to re-authenticate "Bob", and the WCF service can then use the Claims returned by the ADFS server which is on the client.
Is this picture right?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
几乎。将 Web 服务和 ADFS (IP-STS) 之间的箭头移动到 Web 应用程序和 ADFS 之间。然后,它将发送到 Web 服务的“Bob”是一个由 ADFS 签名的令牌,其中包含有关 Bob 的声明。 Web 服务将检查此签名,如果匹配,则声明将被视为可信。
通常,对于像这样的跨组织用例,供应商还会有一个 STS(RP-STS)。 STS 之间将建立信任。然后,本地应用程序(例如,该图中的Web应用程序和服务)只需要信任其本地STS。这避免了信任关系的完全连接图。
HTH!
Almost. Move the arrows between the Web service and ADFS (the IP-STS) to be between the Web app and ADFS. Then, the "Bob" that it will send to the Web service is a token that is signed by ADFS containing claims about Bob. The Web service will check this signature, and, if it matches, the claims will be considered trustworthy.
Typically, for cross orgranizational use cases like this, the supplier would also have an STS (an RP-STS). Trust would be established between the STSs. Then, local applications (e.g., the Web app and service in this drawing) only need to trust their local STS. This avoids a fully connected graph of trust relationships.
HTH!