Keycloak Custom Authenticator for JWT Token Validation with IFrame Java
This is a simple Keycloak Java Authenticator that checks if the user is coming with trusted JWT. If the user is coming with trusted JWT then login form is skipped. If the user is coming with non-trusted JWT login form is forced.
Make sure that Keycloak SPI dependencies and your Keycloak server versions match. Keycloak SPI dependencies version is configured in pom.xml
in the keycloak.version
property.
To build the project execute the following command:
mvn package
And then, assuming $KEYCLOAK_HOME
is pointing to you Keycloak installation, just copy it into deployments directory:
cp target/keycloak-jwt-authenticator.jar $KEYCLOAK_HOME/standalone/deployments/