dotConnect for MySQL Documentation
On this page
    Using Entity Framework Core Implementation of ASP.NET Core Identity for MySQL
    On this page

    ASP.NET Core Identity is a modern system for user authentication and authorization in ASP.NET Core. You can find more information about ASP.NET Core Identity in the official Microsoft documentation.

    dotConnect for MySQL provides support for implementing ASP.NET Core Identity with MySQL databases by utilizing Entity Framework Core in your web applications. With this integration, you can take advantage of ASP.NET Core Identity features such as a unit-testable authentication system, social login support, and OWIN integration. This tutorial demonstrates how to create an Entity Framework implementation of ASP.NET Core Identity.

    Prerequisites

    Before you begin, install the following prerequisites:

    To create an ASP.NET Core application that uses dotConnect for MySQL to store identity information, follow the instructions corresponding to your version of Visual Studio.

    + Visual Studio 2022, 2026

    + Visual Studio 2019

    + Visual Studio 2017

    Checking Application

    Now, we can run our application and check if everything works correctly.

    1. Run the application by pressing CTRL+F5.

      Home page

    2. Switch to the Register tab at the top of the page.

      Registration page

    3. Enter your email and password in the designated fields, then click Register.

    4. The new user is registered and logged in, and the ASP.NET Identity tables are created in the MySQL database.

      User is registered

    See Also

    Using Entity Framework Implementation of ASP.NET Identity 1 for MySQL  | Using Entity Framework Implementation of ASP.NET Identity 2 for MySQL  | Using ADO.NET Implementation of ASP.NET Identity 1 for MySQL  | Using ADO.NET Implementation of ASP.NET Identity 2 for MySQL