1

I'm starting a new ASP.NET project (WebAPI and WebUI) using the Identity 2. What I am struggling to understand is when and if to use claims at all.

My app will require users to login and previously with the old Membership system, I would have added them to a role when they register. Should I continue doing this or is there a better way to handle all of this nowadays?

Wouldnt using Roles and Claims just overcomplicate things?

Thanks

1 Answer 1

1

Always use claims. All .NET identities are claims-based by default. BTW, a role is also a claim - a claim of type ClaimTypes.Role.

Sign up to request clarification or add additional context in comments.

3 Comments

where can we find examples of using claims. I have spent a long time looking and found very little except for some examples using Thinktecture. What I am looking for is a simple ASP.NET WebAPI example.
agreed, am struggling to find much if not any information this and when you should use this instead of storing in your own custom entities.
First step in understanding claims-based identity and access control would be reading this book. msdn.microsoft.com/en-us/library/ff423674.aspx

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.