ASP NET Identity — how to connect to the project?

Develop your blog, have already made some kind of functionality in the database have some tables:
For database approach "First Code"

Now make a futile attempt to tie the authorization.
Stuck here at some point.
I have opened in VS 2 of the project - Domain and WebUI. What better to implement ASP NET Identity ?
And another question. I already have your context for DB connection
public class EFDbContext : DbContext
which inherits from DbContext and here it is necessary to create AppIdentityDbContext, which must inherit from IdentityDbContext<T>
public class AppIdentityDbContext : IdentityDbContext<appuser></appuser>

The question should be such as to create two contexts, or that's all you can cram into one? Database of course want to use one. If possible, give examples.
June 27th 19 at 15:14
3 answers
June 27th 19 at 15:16
If you need an example - create an empty project in Visual Studio based on a template ASP.NET MVC, with a marked item of authorization(Individual User Accounts it is called). And you will have created the context for the DB connection. In addition, the system implemented a simple logic to the registration, authorization, password recovery, etc. - will be a lot to see.

UPD: IN the "Pro" version of a book on MVC 5 from Freeman paid special attention to Identity. If I am not mistaken, almost 100 pages - I recommend to look also. Pro ASP.NET MVC 5 Platform
June 27th 19 at 15:18
Derive your context from IdentityDbContext and not from DbContext and everything in the standard template, as the above said Eugene, everything is there. And access is controlled by the [Authorize] attribute, you can mark the action and the controller itself.
June 27th 19 at 15:20
I have opened in VS 2 of the project - Domain and WebUI. What better to implement ASP NET Identity ?

In fact wise to do a separate project

Find more questions by tags ASP.NETEntity Framework