How do I use an existing database in an ASP.NET MVC C # and Identity application?

2

I need to authenticate users.

So I created my database with all my business rules, made the connection to the ASP.NET MVC application, and started programming.

Now, when I was doing the part of user I noticed that there are two connections, one called DefaultConnection and mine SQLServer .

The question is: how to change ASP.NET Identity so that I can use only the connection from my local database?

    
asked by anonymous 12.10.2016 / 13:55

1 answer

0

Of the two one:

  • Or redo the login part to access your tables from your database.

  • Or you add ASP.NET Identity as an auxiliary database in the same SQL instance that accesses your database.

The first option seems complicated but it is not, and it gives you full control over your Logins and Roles.

I opted for the second because I already had the project practically done already in Identity.

    
12.10.2016 / 17:19