Giter Club home page Giter Club logo

esup-nfc-tag-server's Introduction

Esup NFC Tag Server - EsupPortail

Application permettant d'utiliser comme lecteur/borne de badge NFC :

Ce projet vise à permettre et faciliter le développement de services autour des cartes NFC dites "multiservice"

Il propose une architecture standardisée et connectée autour du badgeage d'une carte présentant un identifiant (CSN ou identifiant codé en Desfire AES) correspondant à une carte valide d'un individu connu du système d'information.

L'application EsupNfcTagServer, elle est développée en Spring et tourne sur Tomcat.

Installation

Pré-requis

  • Java - JDK : OpenJDK 8 ou 11 : le mieux est de l'installer via le système de paquets de votre linux.
  • Maven : le mieux est de l'installer via le système de paquets de votre linux.
  • Postgresql 9 ou > : le mieux est de l'installer via le système de paquets de votre linux.
  • Tomcat (Tomcat 9)
  • Apache + libapache2-mod-shib2 : https://services.renater.fr/federation/docs/installation/sp
  • Git

Configuration Apache Shibboleth

L'authentification repose sur Shibboleth. Apache doit être configuré pour faire du mod_shib.

Une fois le SP Shibboleth et Apache configurés usuellement (voir : https://services.renater.fr/federation/docs/installation/sp), il faut sécuriser /manager et /nfc en ajoutant ceci à la conf apache (à adapter cependant en fonction des versions d'Apache et mod_shib) :

   <Location /manager>
     AuthType shibboleth
     ShibRequestSetting requireSession 1
     require shib-session
     ShibUseHeaders On
   </Location>

   <Location /nfc>
     AuthType shibboleth
     ShibRequestSetting requireSession 1
     require shib-session
     ShibUseHeaders On
   </Location>

Configuration PostgreSQL

  • pg_hba.conf : ajout de
host all all 127.0.0.1/32 password
  • redémarrage de postgresql
  • psql
create database esupnfctag;
create USER esupnfctag with password 'esup';
grant ALL ON DATABASE esupnfctag to esupnfctag;

Paramétrage mémoire JVM :

Pensez à paramétrer les espaces mémoire JVM :

export JAVA_OPTS="-Xms1024m -Xmx1024m -XX:MaxPermSize=256m"

Pour maven :

export MAVEN_OPTS="-Xms1024m -Xmx1024m -XX:MaxPermSize=256m"

Recupération des sources

git clone https://github.com/EsupPortail/esup-nfc-tag-server

Obtention du war pour déploiement sur tomcat ou autre :

mvn clean package

Lancement de la mise à jour de la base de données

mvn exec:java -Dexec.args="dbupgrade"

Configuration

Voir la page wiki Esup : https://www.esup-portail.org/wiki/display/ESUPNFC/EsupNfcTagServer

esup-nfc-tag-server's People

Contributors

vbonamy avatar dlemaignent avatar dependabot[bot] avatar hagneva1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.