c# - Using Asp.net mvc identity in multiple projects -


we have project in multiple layer ( containing data access layer , service layer , web .... ) have entity person , user , customer , employee going use asp.net identity in our website user register , authentication if want register user in 1 of layers ( not website ) how can according asp.net identity , , authentication ?

(my first idea add user database , use passwordhasher class of microsoft.aspnet.identity hash password , there better way ? example move asp.net identity new class library project or other ways )

another thing :

i want know how can use entities customer , employee ... in design ?

if want register user in 1 of layers ( not website ) how can according asp.net identity

you not want bring asp.net identity business logic layer. should @ presentation layer only.

(my first idea add user database , use passwordhasher class of microsoft.aspnet.identity hash password , there better way ? example move asp.net identity new class library project or other ways )

first of all, if want use asp.net identity, not want change or modify tables.

easiest way let asp.net identity create tables first. create tables such customer, employee. if need relationship userid, use aspnetusers - id column primary key or foreign key in tables.

adam freeman has free chapter asp.net identity here.

other thoughts

if want change lot, might want consider using owincontext , authenticationmanager instead of entire identity.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -