Try this:
[Authorize]
public ActionResult SomeAction()
{
var identity = (ClaimsIdentity)User.Identity;
IEnumerable<Claim> claims = identity.Claims;
...
}
More Related Contents:
- What is ASP.NET Identity’s IUserSecurityStampStore interface?
- ASP.NET Identity with EF Database First MVC5
- ASP.NET Identity DbContext confusion
- Asp.Net Forms Authentication when using iPhone UIWebView
- Adding ASP.NET MVC5 Identity Authentication to an existing project
- Store/assign roles of authenticated users
- New Asp.Net MVC5 project produces an infinite loop to login page
- Biggest advantage to using ASP.Net MVC vs web forms
- SignalR – Sending a message to a specific user using (IUserIdProvider) *NEW 2.0.0*
- How do I export to Excel?
- Disable Session state per-request in ASP.Net MVC
- How do I protect static files with ASP.NET form authentication on IIS 7.5?
- Generating reset password token does not work in Azure Website
- WebAPI to Return XML
- Global ASAX – get the server name
- Infinite URL Parameters for ASP.NET MVC Route
- Difference between Html.RenderAction and Html.Action
- How to Customize ASP.NET Web API AuthorizeAttribute for Unusual Requirements
- Using ASP.Net MVC with Classic ADO.Net
- How to do a ASP.NET MVC Ajax form post with multipart/form-data?
- ASP.NET Core change EF connection string when user logs in
- Difference between DropDownlist or DropDownListFor Html helper
- ASP.net MVC4 WebApi route with file-name in it
- Unable to create an object of type ‘[DBContext’s Name]’. For the different patterns supported at design time [closed]
- ‘System.Net.Http.HttpContent’ does not contain a definition for ‘ReadAsAsync’ and no extension method
- Diagnosing 404 errors on IIS 7 and ASP.NET MVC
- ASP.NET MVC3 Role and Permission Management -> With Runtime Permission Assignment
- MVC 5 Multiple Models in a Single View
- how to know if the request is ajax in asp.net mvc?
- How to decide which is right, WebForms or MVC when doing ASP.NET