You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Bring up a container on image 1.12.0 of Kratos
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
The text was updated successfully, but these errors were encountered:
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
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
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
The text was updated successfully, but these errors were encountered: