Issue
I need to allow users to change their email address and password directly from my application.
Is it possible to implement this with the following Java library?
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-admin-client</artifactId>
<version>18.0.2</version>
</dependency>
Could you please show an example?
Solution
You can use function from UserResource class to reset the selected user password
resetPassword(CredentialRepresentation credentialRepresentation)
As you can see it takes on CredentialRepresentation, that is the class in which you need to instantiate the object to hold the credential information so that keycloak can use.
Answered By - Aleson
Answer Checked By - David Goodson (JavaFixing Volunteer)