Custom authenticator for remembering the user logging in, even if no "Remember me" flag is set. Useful in combination with identity providers, which don't allow to set the "Remember me" flag.
Since this package implements internal Keycloak SPIs, there's a chance this extension breaks with a new major version of Keycloak.
See compatibility list below to find the version that suits your Keycloak version.
Keycloak Version | Extension Version |
---|---|
= 17.0.0 |
Verified, requires modified pom and compilation. |
< 20.0.0 |
|
>= 20.* and <= 24.* |
✅ 1.0.0 |
> 24 |
- With Keycloak running as Docker container, you'll want to build your own image.
- When you have your basic
Dockerfile
prepared, make the following adjustments:
# Install "Remember Me" authenticator
ADD --chown=keycloak:keycloak https://github.com/Herdo/keycloak-remember-me-authenticator/releases/download/v1.0.0/keycloak-remember-me-authenticator-1.0.0.jar /opt/keycloak/providers/keycloak-remember-me-authenticator-1.0.0.jar
# Build image
RUN /opt/keycloak/bin/kc.sh build
- Start your custom Keycloak image as a new container.
- Open your Keycloaks admin interface and login.
- Navigate to
Authentication
. - Create a new
Basic flow
calledpost idp login remember me
. - Add
Remember Me Authenticator
asRequired
step. - Navigate to
Identity providers
and select your provider you want to enable the "Remember Me" function for. - For the
Post login flow
selectpost idp login remember me
and save.