Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 760b6bd

Browse files
committed
fix: Updates processFilterConfigurations-example
1 parent 373d3a3 commit 760b6bd

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

config-templates/processFilterConfigurations-example.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,32 @@ Configuration options:
301301
```php
302302
25 => [
303303
'class' => 'perun:SpAuthorization',
304-
'interface' => 'LDAP',
304+
'interface' => 'ldap',
305305
'registrar_url' => 'https://signup.perun.cesnet.cz/fed/registrar/',
306306
'check_group_membership_attr' => 'check_group_membership',
307307
'vo_short_names_attr' => 'vo_short_names',
308308
'registration_link_attr' => 'registration_link',
309309
'allow_registration_attr' => 'allow_registration',
310310
],
311311
```
312+
313+
## EnsureVOMember
314+
315+
Checks whether the user is in the given VO (group). If not, redirects him/her to the registration.
316+
317+
Configuration options:
318+
* `registrationUrl`: URL to the registration
319+
* `voShortName`: VO shortname to check the user's membership
320+
* `groupName`: OPTIONAL, checks that user is in given group
321+
* `callbackParameterName`: name of the parameter wich will hold callback URL, where the user should be redirected after the AUP approval on URL configured in the `approval_url` property,
322+
* `interface`: specifies what interface of Perun should be used to fetch data. See class `SimpleSAML\Module\perun\PerunAdapter` for more details.
323+
```php
324+
25 => [
325+
'class' => 'perun:PerunEnsureMember',
326+
'registerUrl' => 'https://signup.perun.cesnet.cz/fed/registrar/',
327+
'voShortName' => 'cesnet',
328+
'groupName' => 'cesnet_group_name', // optional
329+
'callbackParameterName' => 'targetnew',
330+
'interface' => 'ldap',
331+
],
332+
```

0 commit comments

Comments
 (0)