在那里似乎有一个夸张的资源,但如何做到这一点,但我并没有真正能够找到任何事情来完全做我想做的事情。我正在尝试创建一个WCF Web服务,该服务需要用户进行身份验证以便能够执行任何操作(调用方法,请参阅WSDL等)。身份验证将是我写入的自定义作品,以连接到我们的LDAP服务器。我想使用表单身份验证,因为我不希望客户端必须在每个请求上重新验证。我希望这项服务只要向客户端发送一个表单auth tickie cookie,客户端可以向未来的请求发送给客户端(我很好,这对于不支持cookie的客户环境,例如移动应用程序)。但是,在服务方面,我需要能够在存储器存储数据中,每个用户保存用户的身份验证组的缓存副本(避免对LDAP服务器进行重复呼叫),只需使用即可轻松查阅形成验证票。对于WCF来说,我是相当新的,并形成身份验证,所以如果你不会跳过“简单”的东西,我会很感激。谢谢!

有帮助吗?

解决方案

It seems to me that you need to setup a Secure Token Service (STS) that will take care of the authentication. A STS can expose an LDAP or SQL table if you like.

Other alterantives can be Windows Azure ACS that allow you to federate against many different identity providers like Facebook and Google.

If your authentication source is Active Directory, then ADFS is the way to go.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top