We have our own db already, with users
, roles
,userrole
tables already in place, and just have discovered the Identity system in .net.
I would like to integrate the application cookie authentication but having trouble understanding the different concepts in this Identity model. The OWIN adapter that allows to integrate to third-parties isn't necessarily needed. As we don't need to integrate with third-parties, we just need internal encrypted cookie authentication off our system, that is all we're really looking for.
Can someone help me grasp the concept behind these models? I've read about each of them and still am left confused about them.
Currently I see a number of Identity models:
Users, Logins, Claims, Roles
- Would my
roles
table use theRoles
orClaims
model? - There are
Logins
andUsers
, but we only have one login per user. What would be done in this case? - Do I need to use OWIN? I don't need third-party integration, and it looks really heavy.
- If a user has certain arbitrary properties (avatar, age, etc.), where would this be stored?
- Any other suggestions on integrating our own table/structure into the Identity model?
The sample tables which the startup app creates are much more complex than needed. Since we don't need many of the features, granted its nice they are already there, but 2-form authentication, sms verification ,etc. all isn't needed. This is an internal system.
I've spent this last week trying to grasp this model and am still having trouble. If someone can point me to the right direction it would be helpful.