Peter Lange
Peter Lange

Reputation: 2886

ASP.NET Identity customization and ADO.NET

I have existing User tables in my project, and existing code that I want to maintain for persisting users to my database. This is a new ASP.NET site, but it just needs to play nice with existing tables and objects.

In most of my previous developing efforts, I would simply use FormsAuthentication to handle the HTTP Authentication, use its static methods to set the cookies and redirect the browser, and customer prepare the roles on the Principle. While this has worked well for me in the past, I am worried that FormsAuthentication is headed for the same fate as Dodos, Newspapers, and Record Stores, and I am also trying to challenge myself to not avoid new technologies simply because they are new (-er.)

Also, my project is utilizing ADO.NET and not the Entity Framework, and I am hoping to not have to use EF just for the users.

Can anyone point to a tutorial or walkthrough that would help in my getting up to speed on the Identity process and customizing it to fit my needs?

Thanks

Upvotes: 2

Views: 1455

Answers (2)

Giorgos Manoltzas
Giorgos Manoltzas

Reputation: 1718

Please take a look at a project I have created for this topic on github https://github.com/giorgos07/AspNet.Identity.AdoNetProvider Hope you like it.

Upvotes: 0

Win
Win

Reputation: 62300

I am hoping to not have to use EF just for the users.

Identity uses Entity Framework Code First. You cannot get away with EF if you want to use Identity's auto-generated tables.

Adam Freeman (author of Pro ASP.NET MVC 4 & 5) offers free 3 Chapters just for Identity.

Upvotes: 2

Related Questions