简体   繁体   中英

When using a passive STS for authentication in ASP.NET MVC, how can I access the SecurityToken?

I have created a simple ASP.NET MVC (4) application, and I am using the passive profile to authenticate against a remote STS. This all works swimmingly, and I am able to access the claims returned from the STS in the User.Claims property.

Now, I need to gain access to the SecurityToken itself that was returned from the STS. Where can I access this?

You use the BootstrapToken (WIF 3.5) or BootstrapContext (4.5).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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