we have a project in multiple layer ( containing data access layer , service layer , web .... )
also we have some entity like Person , User , Customer , Employee
now we are going to use asp.net identity in our website for user register and authentication
now if we want to register a user in one of the layers ( not website ) how we can do it according to asp.net identity , and what about authentication ?
(my first idea is add a user to database and use PasswordHasher Class of Microsoft.AspNet.Identity to hash a password , is there a better way ? for example move asp.net identity into a new class library project or any other ways )
another thing :
i want to know how we can use another entities like Customer , Employee ... in this design ?
Copyright Notice:Content Author:「AmirReza」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/34819169/using-asp-net-mvc-identity-in-multiple-projects