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

ResetUserPassword sends not set optional fields #50

Open
deadman2000 opened this issue Apr 22, 2021 · 1 comment
Open

ResetUserPassword sends not set optional fields #50

deadman2000 opened this issue Apr 22, 2021 · 1 comment

Comments

@deadman2000
Copy link

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
@lvermeulen
Copy link
Owner

I welcome a pull request for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants