Keycloak.Net
Keycloak.Net copied to clipboard
ResetUserPassword sends not set optional fields
I trying change password by this:
_client.ResetUserPasswordAsync(_conf.Realm, userId, new Credentials
{
Value = password,
Type = "password",
Temporary = false,
});
Request body is:
{"algorithm":null,"config":null,"counter":null,"createdDate":null,"device":null,"digits":null,"hashIterations":null,"hashSaltedValue":null,"period":null,"salt":null,"temporary":false,"type":"password","value":"123456"}
Throwing exception Flurl.Http.FlurlHttpException: Call failed with status code 400 (Bad Request)
Keycloak answer body:
Unrecognized field "hashSaltedValue" (class org.keycloak.representations.idm.CredentialRepresentation), not marked as ignorable
I welcome a pull request for this.