Difference between revisions of "User authentication - ACTIVAGE"
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
* Add "JAVA_OPTS="$JAVA_OPTS -XX:+CreateMinidumpOnCrash"" to standalone.conf to fix failed core dumps of JVM | * Add "JAVA_OPTS="$JAVA_OPTS -XX:+CreateMinidumpOnCrash"" to standalone.conf to fix failed core dumps of JVM | ||
* Set up [https://www.keycloak.org/docs/latest/server_installation/index.html#setting-up-https-ssl SSL] | * Set up [https://www.keycloak.org/docs/latest/server_installation/index.html#setting-up-https-ssl SSL] | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
===Configure keycloak=== | ===Configure keycloak=== | ||
Line 37: | Line 33: | ||
* Create new client "raspberrypi" | * Create new client "raspberrypi" | ||
* Add user federation with LDAP | * Add user federation with LDAP | ||
+ | |||
+ | ===Middleware=== | ||
+ | * 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 python-ldap dependencies sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev | ||
+ | * install python-ldap pip install python-ldap | ||
==Setup UAH== | ==Setup UAH== |
Revision as of 14:16, 28 June 2019
Setup
- Set up Raspberry Pi with latest Raspbian
Hardware
- Connect RFID-RC522 Reader
- Connect screen
- Enable touch on screen
Gravitee
- Download and copy Gravitee
- Set up OpenLDAP
- Download and install Apache Directory Studio
- Install Nginx
- Download latest stable release of MongoDB
- Install MongoDB
- Increase swap on Pi
- Edit gravitee.yml
- Edit constants.json change localhost to IP
- Set up Gravitee Gateway
- Change hostname to "uah"
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
Configure keycloak
- Create new realm "UAH"
- Create new client "raspberrypi"
- Add user federation with LDAP
Middleware
- 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 (standalone.sh) on boot
- Start script for UI (chromium on kiosk mode)
Setup test
- Install docker
- Install oidctest