Module for simpleSAMLphp which shows Proxy IdP/SP statistics
Once you have installed SimpleSAMLphp, installing this module is very simple. First of all, you will need to download Composer if you haven't already. After installing Composer, just execute the following command in the root of your SimpleSAMLphp installation:
php composer.phar require cesnet/simplesamlphp-module-proxystatistics
- Install MySQL Database and create database for statistics and user.
- For this database run script to create tables. Script is available in config-templates/tables.sql.
- Copy config-templates/module_statisticsproxy.php to your folder vith config and fill it.
- Configure, according to mode
- for mode PROXY, configure IdPAttribute filter from Perun module to get sourceIdPName from IdP metadata:
XX => [
'class' => 'perun:IdPAttribute',
'attrMap' => [
'name:en' => 'sourceIdPName',
],
],
// where XX is priority (for example 30, must not be used for other modules)
- for mode IDP, configure
idpEntityIdandidpNameinmodule_statisticsproxy.php
/*
* EntityId of IdP
* REQUIRED FOR IDP MODE
*/
'idpEntityId' => '',
/*
* Name of IdP
* REQUIRED FOR IDP MODE
*/
'idpName' => '',
- for mode SP, configure
spEntityIdandspNameinmodule_statisticsproxy.php
/*
* EntityId of SP
* REQUIRED FOR SP MODE
*/
'spEntityId' => '',
/*
* Name of SP
* REQUIRED FOR SP MODE
*/
'spName' => '',
- Configure proxystatistic filter
XX => array(
'class' => 'proxystatistics:statistics',
'config' => [],
),
// where XX is priority (for example 50, must not be used for other modules)
- Add to
config.php:
'instance_name' => 'Instance name',