Click here to Skip to main content
15,883,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am new to ASPNET Identity 2.0. I would like to know the way to customize Identity 2.0 to work with two databases. One db for authentication (like and IDP but I can query this db). Another one for authorization (role table). Any help?

He the authentication table is the centralized Identity database
Posted
Updated 4-Nov-14 3:52am
v2
Comments
Nathan Minier 4-Nov-14 12:29pm    
You can create your own AuthorizeAttribute that can query your Role database (or include those values in your Session User object).

Have a look at http://www.c-sharpcorner.com/UploadFile/56fb14/custom-authorization-in-mvc/

DotNet tricks[^]
Extending Identity Accounts and Implementing Role-Based Authentication in ASP.NET MVC 5[^]
A Beginner's Tutorial on Custom Forms Authentication in ASP.NET MVC Application[^]
The above links are some very good links/articles on Authentication and authorization.
These would surely help you.
Thanks :)
 
Share this answer
 
Thank you all, I will check those
 
Share this answer
 
Comments
[no name] 10-Nov-14 8:58am    
Tryand adding comments to answers or as a thanking token you can accept the answers that helped you. Thanking all in a solution doesnot sound good apart from giving you a 10 points. So avoid this.
Thank you. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900