cookies - Windows Identity Foundation: How to get new security token in ASP.net -
I'm writing an ASP.net application which uses the Windows Identity Foundation. My ASP.net application uses claim-based authentication with passive redirection in a security token service. This means that when a user accesses the application, they are automatically taken to a security token service, where they receive a security token that they recognize in the application
In ASP.net, the security token is stored in the form of cookies.
I have to do something on which a user can click into my application that will delete the cookie and redirect him to the security token service to get a new token. In short, logging out and logging as another user I try to delete the token in the code, but it remains in some way.
How do I delete the token so that the user can log in again and get a new token?
I found the solution to put it in:
< P> For more information, see here:< Code> Dim smartWs as the Federation Authority Module _ Microsoft.IdentityModel.Web.WSFederationAuthenticationModule = _HttpContext.Current.ApplicationInstance.Modules ("WSFederationAuthenticationModule") smartWsFederationAuthenticationModule.SignOut (True)
I also see that I can handle some other parts of the WIF framework, it was also. It's definitely worth reading.
Comments
Post a Comment