##Authenticator SPI - Custom UserPasswordAuthenticator
- Run a Keycloak instance
docker run --name keycloak -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin quay.io/keycloak/keycloak:10.0.2
- Create the .jar (using maven)
mvn clean package
- Deploy the jar to keycloak
docker cp target/keycloak-spi-example-0.0.1-SNAPSHOT.jar keycloak:/opt/jboss/keycloak/standalone/deployments/keycloak-spi-example-0.0.1-SNAPSHOT.jar
Then :
- Connect to keycloak (using admin credentials)
- Go to Authentication section
- Add execution (select the "browser" value)
- Click Add Flow
- Click Add Execution Flow
- Select the provider created
Then you have multiple possibilities : you can
- override the authentication flow by going to the client and at the bottom click "Authentication Flow overrides", or
- bind the authentication flow directly to the "browser" (for example)