User authentication - ACTIVAGE

From CommonsLab
Revision as of 14:16, 28 June 2019 by Dimitris (talk | contribs) (Keycloak)
Jump to: navigation, search


  • Set up Raspberry Pi with latest Raspbian


  • Connect RFID-RC522 Reader
  • Connect screen
  • Enable touch on screen



  • Install mysql
  • Download and unzip keycloak server
  • Download JDBC connector
  • Configure classpath
  • Add "JAVA_OPTS="$JAVA_OPTS -XX:+CreateMinidumpOnCrash"" to standalone.conf to fix failed core dumps of JVM
  • Set up SSL

Configure keycloak

  • Create new realm "UAH"
  • Create new client "raspberrypi"
  • Add user federation with LDAP


  • Setup flask and python app sample
  • Install flask_oidc
  • install python-ldap dependencies sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
  • install python-ldap pip install python-ldap

Setup UAH

  • Start keycloak ( on boot
  • Start script for UI (chromium on kiosk mode)

Setup test