Skip to content
Snippets Groups Projects
Pavel Vyskočil's avatar
Pavel Vyskočil authored
3b9e940e
History

proxystatistics-simplesamlphp-module

Latest Stable Version Total Downloads CodeFactor License

Module for simpleSAMLphp which shows Proxy IdP/SP statistics

Instalation

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

Configuration

  1. Install MySQL Database and create database for statistics and user.
  2. For this database run script to create tables. Script is available in config-templates/tables.sql.
  3. Copy config-templates/module_proxystatistics.php to your config folder and fill it.
  4. Configure, according to mode
  • for PROXY mode, configure IdPAttribute filter from Perun module to get sourceIdPName from IdP metadata:
    50 => [
        'class' => 'perun:IdPAttribute',
        'attrMap' => [
            'name:en' => 'sourceIdPName',
        ],
    ],
    // where 50 is priority (for example, must not be used for other modules)
  • for IDP mode, configure entity ID and name in module_proxystatistics.php
    'IDP' => [
        'id' => '',
        'name' => '',
    ],
  • for SP mode, configure entity ID and name in module_proxystatistics.php
    'SP' => [
        'id' => '',
        'name' => '',
    ],
  1. Configure proxystatistics filter
    50 => [
        'class' => 'proxystatistics:Statistics',
    ],
    // where 50 is priority (for example, must not be used for other modules)
  1. Add to config.php:
'instance_name' => 'Instance name',