Newer
Older
// template for a PhP configuration file loaded in simpleSamlPhp authsources.php file
$validTestAccounts = array (
[% PROCESS "accountProfiles/${account.account_profile()}.tt2" %]
'user[% account.id() %]:{SHA256}[% account.user_password_hash() %]=' => array(
renater.salaun
committed
[% FOREACH attribute IN account_profile.pairs -%]
[% NEXT IF attribute.key.match('^(type|comment)$') %]
renater.salaun
committed
[% IF attribute.value.isa('SCALAR') -%]
'[% attribute.key %]' => '[% attribute.value %]',
[% ELSE -%]
'[% attribute.key %]' => array('[% attribute.value.join("','") %]'),
[% END %]
[% END %]
renater.salaun
committed
),