Finbuckle / Finbuckle.MultiTenant

Finbuckle.MultiTenant is an open-source multitenancy middleware library for .NET. It enables tenant resolution, per-tenant app behavior, and per-tenant data isolation.
https://www.finbuckle.com/multitenant
Apache License 2.0
1.3k stars 265 forks source link

Problems with .NET 8 - Blazor Web App #771

Closed eptgrant closed 8 months ago

eptgrant commented 9 months ago

Hi there,

I'm having trouble integrating Finbuckle with my project, so I created a brand new Blazor project using the new template with these settings:

image

Which includes provisioning for User registration / login etc.

After implementing the bare minimum for Finbuckle following the instructions at https://www.finbuckle.com/MultiTenant/Docs/v6.12.0/Identity#introduction, the result is the user registration works (including setting the tenantId against the user in the DB), however the "login" only half works.

There are no errors thrown, however the user isn't actually logged in. (Unable to access private pages etc)

I can see a cookie does get created.

Any help would be greatly appreciated,

Thanks

AndrewTriesToCode commented 9 months ago

HI! Sorry for the late reply!

Did you have any success resolving this? I’m not a Blazor expert and most of the guidance is for MVC style projects but should in theory work.

eptgrant commented 9 months ago

Hi, thats no problem.

No unfortunately I was unable to move past this.

Cheers

eptgrant commented 8 months ago

Resolved, my bad.

Didn't have:

        app.UseAuthentication();
        app.UseAuthorization();

Once added, works a treat, thanks!

eptgrant commented 8 months ago

Closed