Capture Tenant in Asp.Net Core 2.0 Web Api

Let’s now capture the Tenant in our code.  Here I will be using the domain name of the web site the app runs on to determine who the Tenant is.  Normally you would capture domains names like “customerA.apothecaric.com” and “customerB.apothecaric.com” and you then determine which Tenant the user belongs to. Set Up Data For Development In our immediate case we…

Read more »

Add Multi-Tenancy to Asp.Net Core Identity

Now I think it starts to get a bit more interesting.  I would like my API to be able to handle Multi-Tenancy.  For this situation we need to add a whole new class/table to Asp.Net Core Identity.  It is not as bad as it sounds. Create the Tenant Let’s start by creating a Tenant object. And let’s look at that…

Read more »

Setting up for a Multi Tenant Angular and Asp.Net Core 2.0 Web Api Application

Background I am looking to do a project that allows Multi Tenant access to a SPA created in Angular.  I will use Asp.Net Core 2.0 Web Api for the rest calls.  For this walk-through I will be keeping the Api and the UI projects separate.  Unlike most examples that I have found, I will not be putting the UI into…

Read more »