简体   繁体   English

使用WSFAM的带有被动STS的WCF应用程序服务

[英]WCF Application Service with Passive STS using WSFAM

There are lots of examples which show a ASP.NET web application that is secured with Passive STS. 有许多示例显示了使用Passive STS保护的ASP.NET Web应用程序。 I'm trying to apply a working ASP.NET example on simple WCF Application Service, using WSFAM, SAM, VS2012/.Net4.5. 我正在尝试使用WSFAM,SAM,VS2012 / .Net4.5在简单的WCF应用程序服务上应用有效的ASP.NET示例。 Once I open up the browser on localhost/Service1.svc the browser is redirected to the STS, posts the token back to the service (RP) and then gets redirected again to the STS, the loop goes endlessly. 一旦我在localhost / Service1.svc上打开浏览器,浏览器便被重定向到STS,将令牌发布回服务(RP),然后再次重定向到STS,循环不断进行。

I plan on implementing ASMX endpoints eventually, which is why I have to use WCF. 我计划最终实现ASMX端点,这就是为什么我必须使用WCF的原因。

Does it make sense that a WCF will use Passive STS for authentication? WCF将使用被动STS进行身份验证是否有意义?

For WCF you should have a look at the WSFederationBinding. 对于WCF,您应该看看WSFederationBinding。 The passive scenario makes little sense for WCF service. 被动方案对于WCF服务意义不大。 A Passive scenario will always show a user interface on the STS. 被动方案将始终在STS上显示用户界面。 You should normally obtain a token in the part of your app that has a user interface ( a website or a windows app) and then pass the token to the WCF service. 通常,您应该在应用程序的具有用户界面的部分(网站或Windows应用程序)中获得令牌,然后将令牌传递给WCF服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM