Warning
This repository is no longer maintained and has security vulnerabilities. The code is only intended to demonstrate the feasibility of integration.
This Wordpress site demonstrates how to use the ezMESURE API in order to show charts and metrics to users authenticated via Shibboleth.
A recent version of Docker and Docker-Compose.
git clone https://github.com/ezpaarse-project/ezmesure-widgets.git
-
Put the private key (
server.key
) and the certificate (server.crt
) used to declare the service provider in the fédération d'identités Education-Recherche inrp/shibboleth/ssl/
. NB: the private key is critical and should not be shared. -
Set the following environment variables :
- APPLI_APACHE_SERVERNAME
- APPLI_APACHE_SERVERADMIN
- APPLI_APACHE_LOGLEVEL
- ENTITY_ID
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_DATABASE
- Configure shibboleth
make config
- The authentication process requires the user to be located at
ezmesure-preprod.couperin.org
. If working on localhost, add the following line into/etc/hosts
:
127.0.0.1 ezmesure-preprod.couperin.org
make start # start ezMESURE Widgets
make stop # stop ezMESURE Widgets
make cleanup # stop and remove all docker containers
-
Connect to http://ezmesure-preprod.couperin.org and follow the installation instructions.
-
Install the Shibboleth plugin and activate it
-
Go to Shibboleth settings
- Under "General"
- Change Login URL to https://ezmesure-preprod.couperin.org/Shibboleth.sso/Login
- Change Logout URL to https://ezmesure-preprod.couperin.org/Shibboleth.sso/Logout
- Set Attribute Access to "HTTP Headers"
- Tick "Default Login Method"
- Under "Users"
- Tick "Automatically Create Accounts"
- Mounting the
wp-content
directory with docker results in the impossibility to choose language upon installation.