Skip to content

rebillard-maxime/custom-authenticator-spi-keycloak

Repository files navigation

##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 :

  1. Connect to keycloak (using admin credentials)
  2. Go to Authentication section
  3. Add execution (select the "browser" value)
  4. Click Add Flow
  5. Click Add Execution Flow
  6. 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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages