Can somebody please explain, what the claim mechanism means in new ASP.NET Identity Core?
As I can see, there is an AspNetUserLogins
table, which contai
There are two types of authentication in ASP.Net identity.
You can either use one of them or both at the same time. Use role based when you have very defined things. For example you create two rolea teacher and student. Only teacher can add subjects. So you assigned teacher role to those users whose you want to have access to add subjects.
Claim based is more flexible. Suppose you have a requirement some students can also add subjects. In this case you have to create one more role who can be student and access to add subject. But if you are using claim based it would be very easy. Just create claim like addSubject and assign it to any user whise you want to access to add aubject.