fullstackhero / dotnet-starter-kit

Production Grade Cloud-Ready .NET 8 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
https://fullstackhero.net/dotnet-webapi-boilerplate/
MIT License
5.06k stars 1.52k forks source link

Tenant Disabled #810

Closed nayabraheel closed 1 year ago

nayabraheel commented 1 year ago

How to disable the tenant feature? i have a standalone application which do not require tenant

kirkey commented 1 year ago

On my project, I pre-specified root as default tenant on login. On Infrastructure/Persistence/Configuration - avoid putting builder.IsMultitenant();

You can also remove all tenant related codes if you like but I think you will need a lot of work. This will result instability.

fretje commented 1 year ago

I think the easiest is to configure finbuckle with a static strategy (with the "root" tenant).

See https://www.finbuckle.com/MultiTenant/Docs/v6.9.1/Strategies#static-strategy

iammukeshm commented 1 year ago

You can use the default root tenant as the only tenant. Tenant Key comes into the picture only while generating tokens.

For a more cleaner way, as mentioned earlier, you can use the static strategy, somewhat like this.

image