|
1 | 1 | <?php |
2 | 2 |
|
| 3 | +declare(strict_types=1); |
| 4 | + |
3 | 5 | /** |
4 | | - * This is example configuration of SimpleSAMLphp Perun interface and additional features. |
5 | | - * Copy this file to default config directory and edit the properties. |
| 6 | + * This is example configuration of SimpleSAMLphp Perun interface and additional features. Copy this file to default |
| 7 | + * config directory and edit the properties. |
6 | 8 | * |
7 | | - * copy command (from SimpleSAML base dir) |
8 | | - * cp modules/perun/module_perun.php config/ |
| 9 | + * copy command (from SimpleSAML base dir) cp modules/perun/module_perun.php config/ |
9 | 10 | */ |
10 | 11 | $config = [ |
11 | | - |
12 | 12 | /** |
13 | 13 | * base url to rpc with slash at the end. |
14 | 14 | */ |
|
39 | 39 | //'ldap.password' => 'password' |
40 | 40 |
|
41 | 41 | /** |
42 | | - * Whether to use startTLS on port 389. Defaults to false. |
43 | | - * SSL/TLS is always used for ldaps: regardless of this setting. |
| 42 | + * Whether to use startTLS on port 389. Defaults to false. SSL/TLS is always used for ldaps: regardless of this |
| 43 | + * setting. |
44 | 44 | */ |
45 | 45 | //'ldap.enable_tls' => true, |
46 | 46 |
|
47 | 47 | /** |
48 | 48 | * Perun group name to eduPersonEntitlement mapping. Mapping is according to the spec in |
49 | | - * https://aarc-project.eu/wp-content/uploads/2017/11/AARC-JRA1.4A-201710.pdf |
50 | | - * groupNameAARC - enable group naming according to AARC spec globally, |
51 | | - * every SP can overide it with groupMapping option |
52 | | - * entitlementPrefix - prefix put in front of the Perun entitlement, do not forget to add ':' at the end |
53 | | - * entitlementAuthority - name of the authority issuing the entitlement |
| 49 | + * https://aarc-project.eu/wp-content/uploads/2017/11/AARC-JRA1.4A-201710.pdf groupNameAARC - enable group naming |
| 50 | + * according to AARC spec globally, every SP can overide it with groupMapping option entitlementPrefix - prefix put |
| 51 | + * in front of the Perun entitlement, do not forget to add ':' at the end entitlementAuthority - name of the |
| 52 | + * authority issuing the entitlement |
54 | 53 | */ |
55 | | - 'groupNameAARC' => true/false, |
| 54 | + 'groupNameAARC' => true / false, |
56 | 55 | 'entitlementPrefix' => 'prefix', |
57 | 56 | 'entitlementAuthority' => 'authority', |
58 | 57 |
|
59 | 58 | /** |
60 | | - * specify which type of IdPListService will be used |
61 | | - * Expected values: csv, db |
| 59 | + * specify which type of IdPListService will be used Expected values: csv, db |
62 | 60 | */ |
63 | 61 | 'idpListServiceType' => '', |
64 | 62 |
|
65 | 63 | /** |
66 | | - ***************************************** |
67 | 64 | * Part of configuration for status page * |
68 | | - ***************************************** |
69 | 65 | */ |
70 | 66 |
|
71 | 67 | /** |
72 | | - * Specify the used interface to get the status data |
73 | | - * Only NAGIOS type is now allowed |
| 68 | + * Specify the used interface to get the status data Only NAGIOS type is now allowed |
74 | 69 | */ |
75 | 70 | 'status.type' => 'NAGIOS', |
76 | 71 |
|
|
99 | 94 | /** |
100 | 95 | * Specify, if the peer verification is enabled, |
101 | 96 | * |
102 | | - * OPTIONAL |
103 | | - * Default: false |
| 97 | + * OPTIONAL Default: false |
104 | 98 | */ |
105 | 99 | 'status.nagios.peer_verification' => false, |
106 | 100 |
|
107 | 101 | /** |
108 | 102 | * Specify the list of services, which will be shown |
109 | 103 | * |
110 | | - * OPTIONAL |
111 | | - * Default: show all received services |
| 104 | + * OPTIONAL Default: show all received services |
112 | 105 | */ |
113 | 106 | 'status.shown_services' => [ |
114 | 107 | 'serviceIdentifier' => [ |
115 | 108 | 'name' => 'serviceName', |
116 | | - 'description' => 'serviceDescription' |
| 109 | + 'description' => 'serviceDescription', |
117 | 110 | ], |
118 | 111 | ], |
119 | 112 |
|
120 | 113 | /** |
121 | | - **************************************** |
122 | 114 | * Part of configuration for listOfSps * |
123 | | - **************************************** |
124 | 115 | */ |
125 | 116 |
|
126 | 117 | /** |
|
171 | 162 | /** |
172 | 163 | * Specify list of facility attributes, which will be shown |
173 | 164 | */ |
174 | | - 'listOfSps.attributesDefinitions' => [ |
175 | | - '' |
176 | | - ], |
| 165 | + 'listOfSps.attributesDefinitions' => [''], |
177 | 166 |
|
178 | 167 | /** |
179 | | - * Specify list of facility attributes which have translations. |
180 | | - * If an attribute is not included in listOfSps.attributesDefinitions, it will be added. |
181 | | - * Defaults to an empty array. |
| 168 | + * Specify list of facility attributes which have translations. If an attribute is not included in |
| 169 | + * listOfSps.attributesDefinitions, it will be added. Defaults to an empty array. |
182 | 170 | */ |
183 | 171 | //'listOfSps.multilingualAttributes' => [], |
184 | 172 |
|
185 | 173 | /** |
186 | | - ******************************************** |
187 | 174 | * Part of configuration for DS * |
188 | | - ******************************************** |
189 | 175 | */ |
190 | 176 |
|
191 | 177 | 'wayf_config' => [ |
|
199 | 185 | */ |
200 | 186 | 'translate_module' => 'disco', |
201 | 187 | /** |
202 | | - * Specify prefix for filtering AuthnContextClassRef |
203 | | - * All AuthnContextClassRef values starts with this prefix will be removed before the request will be send to IdP |
| 188 | + * Specify prefix for filtering AuthnContextClassRef All AuthnContextClassRef values starts with this prefix |
| 189 | + * will be removed before the request will be send to IdP |
204 | 190 | */ |
205 | 191 | 'remove_authn_context_class_ref_prefixes' => ['urn:cesnet:proxyidp:'], |
206 | 192 | /** |
|
211 | 197 | |
212 | 198 | ], |
213 | 199 | /** |
214 | | - * Warning configuration |
215 | | - * The configuration can be loaded from file, url or directly from this config. All possibilities has to follow |
216 | | - * the structure under the "config" key. |
| 200 | + * Warning configuration The configuration can be loaded from file, url or directly from this config. All |
| 201 | + * possibilities has to follow the structure under the "config" key. |
217 | 202 | */ |
218 | 203 | 'warning_config' => [ |
219 | 204 | # IF SOURCE === FILE |
220 | | -# 'file' => '/etc/perun/simplesamlphp/elixir/config/warning.php', |
| 205 | + # 'file' => '/etc/perun/simplesamlphp/elixir/config/warning.php', |
221 | 206 | # IF SOURCE === URL |
222 | | -# 'url' => 'https://test.com', |
| 207 | + # 'url' => 'https://test.com', |
223 | 208 | # IF SOURCE === CONFIG |
224 | 209 | 'config' => [ |
225 | | - 'enabled' => FALSE, |
| 210 | + 'enabled' => false, |
226 | 211 | 'type' => 'INFO', |
227 | 212 | 'title' => [ |
228 | 213 | 'en' => 'Sample text', |
229 | | - 'cs' => 'ukázkový text' |
| 214 | + 'cs' => 'ukázkový text', |
230 | 215 | ], |
231 | 216 | 'text' => [ |
232 | 217 | 'en' => 'Sample warning text', |
233 | 218 | 'cs' => 'ukázkový text', |
234 | | - ] |
| 219 | + ], |
235 | 220 | ], |
236 | 221 | ], |
237 | 222 | // enable box shaodw around the wrap element |
238 | | - 'boxed' => TRUE, |
| 223 | + 'boxed' => true, |
239 | 224 | // block of IDPs |
240 | 225 | 'idp_blocks_config' => [ |
241 | 226 | [ |
|
244 | 229 | // name that will be used in some classes and translation keys |
245 | 230 | 'name' => 'eduGAIN', |
246 | 231 | //enable displaying of the texts |
247 | | - 'text_enabled' => TRUE, |
| 232 | + 'text_enabled' => true, |
248 | 233 | /* Translation for the hint above the entry. Leave out option to disable it if text_enabled is true |
249 | 234 | 'hint_translation' => [ |
250 | 235 | 'en' => 'You can log in using your institutional account or another account you have on the web (e.g. Apple).', |
|
264 | 249 | [ |
265 | 250 | 'type' => 'tagged', |
266 | 251 | 'name' => 'social_idps', |
267 | | - 'text_enabled' => FALSE, |
| 252 | + 'text_enabled' => false, |
268 | 253 | //tags to include in the list |
269 | 254 | 'tags' => ['social'], |
270 | 255 | // specific IDP entity IDs to include in the list |
|
276 | 261 | 'warning_test_sp_config' => [ |
277 | 262 | 'header' => [ |
278 | 263 | 'en' => '<h3>Warning - service in test environment</h3>', |
279 | | - 'cs' => '<h3>Varování - testovací služba</h3>' |
| 264 | + 'cs' => '<h3>Varování - testovací služba</h3>', |
280 | 265 | ], |
281 | 266 | 'text' => [ |
282 | 267 | 'en' => '<p>Service is in the test environment.<br class="spacer"/>Hit the continue button.</p>', |
|
0 commit comments