User Tools

Site Tools


send_email_through_keyclock

This is an old revision of the document!


# Run this to find the Keycloak container:

docker ps | grep -i keycloak
 
Result will look like
2550aa1a95b7   quay.io/keycloak/keycloak:26.1.0   "/opt/keycloak/bin/k…"   7 days ago   Up 7 days             8443/tcp, 0.0.0.0:8080->8080/tcp, [::]:8080->8080/tcp, 9000/tcp   keycloak_app
fcca38958118   postgres:16                        "docker-entrypoint.s…"   7 days ago   Up 7 days (healthy)   5432/tcp

Run this in the droplet console to find the exact JAR download URL:

curl -s https://api.github.com/repos/for-keycloak/email-otp-authenticator/releases/latest | grep browser_download_url

We need email-otp-authenticator JAR if it is not available

1. Download the email-otp-authenticator JAR

curl -L -o email-otp-authenticator.jar https://github.com/for-keycloak/email-otp-authenticator/releases/download/v1.3.5/email-otp-authenticator-v1.3.5-kc-26.2.5.jar

2. Copy into the running container

docker cp email-otp-authenticator.jar keycloak_app:/opt/keycloak/providers/

3. Run build inside the container (registers the provider)

docker exec keycloak_app /opt/keycloak/bin/kc.sh build
send_email_through_keyclock.1773033492.txt.gz · Last modified: by sonali