Creating a multi-tenant .NET Core Application - Tenant specific authentication

Tenant specific authentication, part 4 of 5

Introduction Today we will extend our multi-tenant solution allow each tenant to have different ASP.NET Identity providers configured. This will allow differet tenants to be able to define different external identiy providers or different clients for the same identity provider. This is important to allow consent screens on third party services reflect the branding of the particular tenant that the user is signing in to. Parts in the series Part 1: Tenant resolution Part 2: Tenant containers Part 3: Options configuration per tenant Part 4: Authentication per tenant (this post) Part 5: Data isolation per tenant (Upcoming) Why have tenant specific authentication? [Read More]

Creating a multi-tenant .NET Core Application - Tenant specific options

Tenant specific configuration options, part 3 of 5

Introduction Today we will extend our multi-tenant solution to work nicely with the ASP.NET Core Options Pattern. This will allow us to configure components using tenant specific configuration options. This is useful in situations where different tenants might have different settings, e.g. connection strings, cookie policies etc. Parts in the series Part 1: Tenant resolution Part 2: Tenant containers Part 3: Options configuration per tenant (this post) Part 4: Authentication per tenant Part 5: Data isolation per tenant (Upcoming) Why have tenant specific options? [Read More]

Creating a multi-tenant .NET Core Application - Tenant containers

Tenant containers, part 2 of 5

Introduction This post looks at how to configure services on a per-tenant basis. This allows us to resolve a different service or instance based on which tenant is active. Parts in the series Part 1: Tenant resolution Part 2: Tenant containers (this post) Part 3: Options configuration per tenant Part 4: Authentication per tenant Part 5: Data isolation per tenant (Upcoming) Why have tenant specific containers? There are three standard scopes supported by the default ASP. [Read More]

Creating a multi-tenant .NET Core Application - Tenant resolution

Tenant resolution, part 1 of 5

Introduction This series of blog posts is an exploration of how to achieve multi-tenancy in an ASP.NET Core web application. There’s a lot of code snippets so you can follow along with your own sample app. There’s no NuGet package you can plug and play at the end of this but it is a great learning exercise. It touches a few “core” (sorry, not sorry) parts of the framework 😉 [Read More]