Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json: unknown field - use_password_migration_hook #4039

Closed
3 of 5 tasks
jimmills opened this issue Aug 14, 2024 · 1 comment
Closed
3 of 5 tasks

json: unknown field - use_password_migration_hook #4039

jimmills opened this issue Aug 14, 2024 · 1 comment
Labels
bug Something is not working.

Comments

@jimmills
Copy link

Preflight checklist

Ory Network Project

No response

Describe the bug

We upgraded our ory nuget package to version 1.14.3 and our self-hosted ory docker container to use the image 1.12.0. Now, when we call IdentityApi.CreateIdentityAsync() we receive an error the use_password_migration_hook is an unknown field.

Looking at the repo, it looks like version 1.14.1 added the UsePasswordMigrationHook property to the ClientIdentityWithCredentialsPasswordConfig class. However, it appears the API that ships in the 1.12.0 container image doesn't expect this field yet.

Reproducing the bug

  1. Bring up a container on image 1.12.0 of Kratos
  2. Using version 1.14.3 of the c# nuget package call IdentityApi.CreateIdentityAsync with a body created with code resembling this:
    var body = new ClientCreateIdentityBody(
    schemaId: "default",
    state: ClientCreateIdentityBody.StateEnum.Active,
    traits: new
    {
    name = "Name",
    email = "test@example.com"
    },
    verifiableAddresses: new List
    {
    new ClientVerifiableIdentityAddress(
    value: "test@example.com",
    verified: true,
    via: ClientVerifiableIdentityAddress.ViaEnum.Email,
    status: "completed"
    )
    },
    credentials: new ClientIdentityWithCredentials(
    password: new ClientIdentityWithCredentialsPassword(
    config: new ClientIdentityWithCredentialsPasswordConfig(
    password: "apasswordofsomesort1"
    )
    )
    )
    );

Relevant log output

Error calling CreateIdentity: {"error":{"code":400,"status":"Bad Request","message":"json: unknown field \"use_password_migration_hook\""}}

Relevant configuration

No response

Version

nuget package 1.14.2, docker image 1.12.0

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Docker

Additional Context

No response

@jimmills jimmills added the bug Something is not working. label Aug 14, 2024
@alnr
Copy link
Contributor

alnr commented Aug 26, 2024

@alnr alnr closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

2 participants