Difference between revisions of "User authentication - ACTIVAGE"

From CommonsLab
Jump to navigation Jump to search
Line 1: Line 1:
 
=Setup=
 
=Setup=
 
*Set up Raspberry Pi with latest Raspbian
 
*Set up Raspberry Pi with latest Raspbian
 +
 
==Hardware==
 
==Hardware==
 
*Connect RFID-RC522 Reader
 
*Connect RFID-RC522 Reader
Line 18: Line 19:
 
*Set up [https://docs.gravitee.io/am/2.x/am_installguide_gateway.html Gravitee Gateway]
 
*Set up [https://docs.gravitee.io/am/2.x/am_installguide_gateway.html Gravitee Gateway]
 
*Change hostname to "uah"
 
*Change hostname to "uah"
 +
 
==Keycloak==
 
==Keycloak==
 
* Install mysql
 
* Install mysql
Line 27: Line 29:
 
* Setup [http://flask.pocoo.org/ flask] and python [https://gist.github.com/thomasdarimont/145dc9aa857b831ff2eff221b79d179a app sample]
 
* Setup [http://flask.pocoo.org/ flask] and python [https://gist.github.com/thomasdarimont/145dc9aa857b831ff2eff221b79d179a app sample]
 
* Install [https://pypi.org/project/flask-oidc/ flask_oidc]
 
* Install [https://pypi.org/project/flask-oidc/ flask_oidc]
 +
* Install virtualenv
 +
** pip install virtualenv
 +
** sudo apt-get install python-virtualenv
 +
 
===Configure keycloak===
 
===Configure keycloak===
 
* Create new realm "UAH"
 
* Create new realm "UAH"

Revision as of 10:55, 28 June 2019

Setup

  • Set up Raspberry Pi with latest Raspbian

Hardware

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

Gravitee

Keycloak

  • 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
  • Setup flask and python app sample
  • Install flask_oidc
  • Install virtualenv
    • pip install virtualenv
    • sudo apt-get install python-virtualenv

Configure keycloak

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

Setup UAH

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


Setup test