Skip to content

Identity Server Tenant Id Mismatch on password update #868

Open
@goforebroke

Description

I am trying to update a users password, but keep getting a tenant id mismatch error thrown in Finbuckle

Reset password page
image

The error occurs when the user manager calls the method ResetPasswordAsync.

image

Error captured in Seq shows the user manager is failing on UpdateAsync

image

I have setup my IdentityDbContext so that it inherits from MultiTenantIdentityDbContext.

image

The data currently in the aspnet users table has two users in each tenant. The highlighted users have the same email address but are in different tenants

image

Here is my tenant table, which resides in a seperate API. All other APIs do tenant resolution to redis cache, if the tenant is not found, it goes to the http store. These are the two tenants in the table and the tenant that I am using is highlighted.

image

I ran a SQL profiler to see why there could possible be a tenant id mismatch. There are 2 statements that execute just prior to the exception and appear to be getting data belonging to the correct tenant identifier '1B8E302B-B931-4CAE-B404-A42B7D1E8895' and tenant id 'CE760000-58B6-2C33-7E0D-08DC8BE9C022'.

image

image

Do you have any idea why I am getting a tenant id mismatch? If you need more information let me know

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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