开发者

changing user with federated security in WCF

开发者 https://www.devze.com 2022-12-25 10:03 出处:网络
I have been tasked with implementing user switching in a component that connects to a WCF service using federated security.

I have been tasked with implementing user switching in a component that connects to a WCF service using federated security.

I can use Tokencla开发者_如何学Pythonims.ReadClaim() to find out what username is currently logged on.

How do I invalidate this token and force another logon?

I have tried changing the username and password on the credentials, but that doesn't seem to do the trick, as the existing claim is still being used.

help :)


I suggest looking into writing a custom ClientCredentials subclass. In this class you can manage what tokens are used and when for each call. You can read more about custom client credentials in this MSDN article.

0

精彩评论

暂无评论...
验证码 换一张
取 消