Skip to content

MultiTenant Auth breaks Finbuckle #1011

@JohnCampionJr

Description

@JohnCampionJr

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions