Hello
I just recently tackled a project of extending the “forgot password” feature in keycloak and have been at a standstill for some days now.
I’m implementing the Authenticator and AuthenticatorFactory and getting the following error when using the token class:
08:32:56,942 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-1) Uncaught server error: java.lang.NoClassDefFoundError: org/keycloak/authentication/actiontoken/resetcred/ResetCredentialsActionToken
This error points me in a missing dependency, so i’ve added the following to my pom.xml:
keycloak-core
keycloak-common
keycloak-services
keycloak-adapter-core
keycloak-server-spi
keycloak-adapter-spi
keycloak-server-spi-private
eycloak-admin-client
None of the above worked, still getting the same error.
Everything seems to be related to the following line in my code:
ResetCredentialsActionToken token = new ResetCredentialsActionToken(user.getId(), absoluteExpirationInSecs, authSessionEncodedId, authenticationSession.getClient().getClientId());
I can’t seem to find the right dependency, any help would be appreciated.
Thank you!