Top "Claims" questions

Claims were introduced in .NET4.

Access Claim values in controller in MVC 5

I have used OWIN authentication in my application. Login Action var claims = new List<Claim>(); claims.Add(new …

c# asp.net asp.net-mvc asp.net-mvc-5 claims
MVC5 Claims version of the Authorize attribute

I'm trying out some of the new stuff in VS2013 RC with MVC5 and the new OWIN authentication middleware. So, …

asp.net-mvc asp.net-mvc-5 claims
How to get claim inside Asp.Net Core Razor View

I did it in my rc1 project like: User.Claims.ElementAt(#).Value But after I switched to rtm it wouldn’…

asp.net-mvc razor claims rtm .net-core-rc1
Efficiently check role claim

I'm developing an Asp.NET MVC5 web application (.NET 4.6) and I need to show some extra lines of HTML to …

c# asp.net asp.net-mvc authentication claims
How to retrieve Claims Value in .Net Core 2.0

As it says in the title I have already assigned claims to the registered user, I am now trying to …

asp.net-core-2.0 claims-based-identity claims asp.net-core-identity
InvalidNameIDPolicy working with ADFS

I have many clients that uses SSO, for that we use SAML 2. Many of my clients uses providers like Okta, …

saml saml-2.0 adfs claims
Is there any way I can mock a Claims Principal in my ASP.NET MVC web application?

I've got some ASP.NET MVC controller code that checks if a user is authenticated and if so, it checks …

.net asp.net-mvc asp.net-identity claims-based-identity claims
Correct use of JwtTokens in C#

I'm playing a with JwtTokens and can't make them work properly. I'm using http://www.nuget.org/packages/System.IdentityModel.…

c# jwt claims
Where is http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name defined?

OASIS owns the http://schemas.xmlsoap.org/ws/2005/05/identity namespace, but I can't find anywhere that defines the "name" claim …

security identity claims-based-identity claims
MVC5 AntiForgeryToken Claims/"Sequence contains more than one element"

Case: I have an MVC5 application (basically the MVC5 template with a scaffolded view) with the Google authentication method enabled. …

security asp.net-mvc-5 antiforgerytoken claims