Windows Identity Foundation: How to get new security token in ASP.net

Posted by Rising Star on Stack Overflow See other posts from Stack Overflow or by Rising Star
Published on 2010-02-01T21:46:02Z Indexed on 2010/04/19 19:13 UTC
Read the original article Hit count: 1298

Filed under:
|
|
|
|

I'm writing an ASP.net application that uses Windows Identity Foundation. My ASP.net application uses claims-based authentication with passive redirection to a security token service. This means that when a user accesses the application, they are automatically redirected to the Security Token Service where they receive a security token which identifies them to the application.

In ASP.net, security tokens are stored as cookies.

I want to have something the user can click on in my application that will delete the cookie and redirect them to the Security Token Service to get a new token. In short, make it easy to log out and log in as another user. I try to delete the token-containing cookie in code, but it persists somehow.

How do I remove the token so that the user can log in again and get a new token?

© Stack Overflow or respective owner

Related posts about windows-identity

Related posts about WIF