keycloak-radius-plugin

Radius OTP Password Example (Google Authenticator)

Build and Start

  1. build and run keycloak (select installation) 1.1 docker installation
           docker run -p 8090:8080 -p 8190:8190 -p1812:1812/udp -p1813:1813/udp   -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin -e DEBUG=true -e DEBUG_PORT=*:8190  -v `pwd`/.:/example  -e KEYCLOAK_ADMIN_IMPORT=/example/Realm.json  vassio/keycloak-radius-plugin start-dev
    

    1.2 release installation <pre> - download and unzip keycloak-radius.zip (https://github.com/vzakharchenko/keycloak-radius-plugin/releases) - unzip keycloak-radius.zip -d keycloak-radius - cd keycloak-radius - sh bin/standalone.sh -Dkeycloak.profile.feature.upload_scripts=enabled -c standalone.xml -b 0.0.0.0 -Djboss.bind.address.management=0.0.0.0 –debug 8190 -Djboss.http.port=8090 </pre> 1.3 Develop installation

     sudo apt-get install net-tools # Only once
     cd keycloak
     ./init.sh # Only once
     ./buildAndStart.sh
    
  2. open http://localhost:8090/auth/ and initialize master realm with login/password. initRealm
  3. open Administration Console
  4. import realm from file Realm.json importRealm
  5. add User test/test for realm otpPassword createUsersetPassword_1
  6. imporsonate user and logout impersonateUserExample impersonateUserExample2
  7. login to realm as user test and configure otp impersonateUserExample3 impersonateUserExample4
  8. install example
cd Examples/OTPPasswordJSExample
npm i
node server.js
  1. open http://localhost:3001/
  2. type login test ![otpPasswordClient](/keycloak-radius-plugin/docs/otpPasswordClient.png) ![otp](/keycloak-radius-plugin/docs/otp.png)
  3. click the “connect To Radius Server”

“SUCCESS”