@@ -16,23 +16,50 @@ Once you have installed SimpleSAMLphp, installing this module is very simple. Fi
16161 . Install MySQL Database and create database for statistics and user.
17172 . For this database run script to create tables. Script is available in config-templates/tables.sql.
18183 . Copy config-templates/module_statisticsproxy.php to your folder vith config and fill it.
19- 4 . Configure IdPAttribute filter from Perun module to get sourceIdPName from IdP metadata:
19+ 4 . Configure, according to mode
20+ * for mode PROXY, configure IdPAttribute filter from Perun module to get sourceIdPName from IdP metadata:
2021```
21- XX => array(
22+ XX => [
2223 'class' => 'perun:IdPAttribute',
23- 'attrMap' => array(
24+ 'attrMap' => [
2425 'name:en' => 'sourceIdPName',
25- ),
26- ),
27- #where XX is priority(for example 30; Must not be used for other modules)
26+ ],
27+ ],
28+ // where XX is priority (for example 30, must not be used for other modules)
29+ ```
30+ * for mode IDP, configure ` idpEntityId ` and ` idpName ` in ` module_statisticsproxy.php `
31+ ```
32+ /*
33+ * EntityId of IdP
34+ * REQUIRED FOR IDP MODE
35+ */
36+ 'idpEntityId' => '',
37+ /*
38+ * Name of IdP
39+ * REQUIRED FOR IDP MODE
40+ */
41+ 'idpName' => '',
42+ ```
43+ * for mode SP, configure ` spEntityId ` and ` spName ` in ` module_statisticsproxy.php `
44+ ```
45+ /*
46+ * EntityId of SP
47+ * REQUIRED FOR SP MODE
48+ */
49+ 'spEntityId' => '',
50+ /*
51+ * Name of SP
52+ * REQUIRED FOR SP MODE
53+ */
54+ 'spName' => '',
2855```
29565 . Configure proxystatistic filter
3057```
3158 XX => array(
3259 'class' => 'proxystatistics:statistics',
33- 'config' => array () ,
60+ 'config' => [] ,
3461 ),
35- # where XX is priority(for example 50; Must not be used for other modules)
62+ // where XX is priority (for example 50, must not be used for other modules)
3663```
37646 . Add to ` config.php ` :
3865```
0 commit comments