Looking for a detailed resource to build a Multi-Tenant ASP.Net Core Application using EntityFramework and ASP.NET Identity

Ramzi Sahawneh 20 Reputation points
2023-10-21T18:17:34.3933333+00:00

I am looking to build a Multi-Tenant Web Application using ASP.Net Core along with EntityFramework, SQL Database, and ASP.net Core Identity.

I am Looking for a detailed resource from Microsoft.

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
726 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,367 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. Phil Johnson 5 Reputation points
    2023-10-23T11:38:42.5633333+00:00

    ASP.NET Core Identity is not multi tenant and presents a few challenges if you wish to make it so.

    The two that I came across that I had to solve were:

    1. Cookies - I had to use a cookie manager to ensure that the cookies for different tenants were different.
    2. LoginExpireMinutes - this could only be set in the startup classes and I had to alter my cookie manager to do this dynamically as different tenants required different login expire minutes.

    I am using Cookies, not sure if ASP.NET Core Identity can be used with JWT tokens or not (i.e. without identityserver4) and if this would make things any simpler or not.

    Hope this helps someone.

    0 comments No comments