Closed EvanBor closed 8 months ago
Hi, I suspect the issue is that UseAuthentication
is triggering an EFCore query somewhere internally which wants a tenant, but since UseMultiTenant
middleware hasn’t run yet it does know the tenant.
If it is because it is trying to do security stamp validation I have a workaround built in for this if you use WithPerTenantAuthentication
as described in the docs.
Otherwise try moving the tenant middleware to occur before the authentication middleware. Let me know if this helps.
Thanks a lot! Using a MultiTenant middleware before the authorization middleware helped solve my problem.
Hello! I'm trying to integrate your libraries into a minimalistic API based on standard .NET solutions, but I came across an error that occurs when registering a user.
I can’t say for sure that this is a bug or my mistake, but please point me to a possible solution.