hygl / keycloak-ip-authenticator

Conditional OTP based on ip address

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

keycloak-ip-authenticator

Using Keycloaks private SPI to create a new authenticator.

Define some IPs and if the users IP matches, skip the OTP Authentication flow.

The authenticator has to be used together with Conditional OTP Form component.

setup

This setup uses maven to build the package and deploys the jar to a local Keycloak Docker container.

build

Modify the Keycloak SPI dependencies and Keycloak server version in pm pom.xml.

To build the project execute the following command:

mvn package

deploy

The jar is copied using the Dockerfile.

Use

mvn clean install

or copy the .jar file to keycloaks deployments folder

cp target/keycloak-ip-authenticator*.jar $KEYCLOAK_HOME/standalone/deployments/

About

Conditional OTP based on ip address

License:Apache License 2.0


Languages

Language:Java 95.2%Language:Dockerfile 4.8%