简体   繁体   中英

How to get other users ClaimsPrinciple in ASP.NET?

I want to create a page with all users' claims. However, I don't quite understand whether user's ClaimsPrinciple is being stored somewhere after logout. If yes, then how can I access it?

If you want to access the claims just before calling sign-out you can read the property of type IEnumerable<Claim> :

HttpContext.User.Calims

Once the sign-out is done, you will no longer have that information available.

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