-
-
Notifications
You must be signed in to change notification settings - Fork 289
Open
Labels
Description
Hi, I've created a test repo just using InMemory data stores.
https://github.com/JohnCampionJr/finbuckle-test
Trying to do a proof of concept for Finbuckle and I am missing something I think.
Issue 1: When logged out (no cookies), the tenant pages work as expected:
https://localhost:7017/acme
https://localhost:7017/initech
But going to the root, take me to /notenant as specified in Program.cs but it causes a redirect loop because that's not a tenant.
builder.Services.AddMultiTenant<TenantInfo>()
.WithBasePathStrategy(options => options.RebaseAspNetCorePathBase = true)
.ShortCircuitWhenTenantNotResolved(new Uri("/notenant", UriKind.Relative))
.WithEFCoreStore<EFCoreStoreDbContext<TenantInfo>, TenantInfo>()
.WithPerTenantAuthentication();
Issue 2: After registering (which works fine), and logging in on one of the tenants, it no longer works. The PerTenantDb no longer gets a TenantInfo so the whole thing stops.
Can I trouble you for a little help? What am I missing?