Skip to content
Snippets Groups Projects
Commit ffe86f4a authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

use newer PHP array syntax

parent 6d91831a
No related branches found
No related tags found
No related merge requests found
<?php
// PhP configuration file loaded in simpleSamlPhp authsources.php file
$validTestAccounts = array (
$validTestAccounts = [
'authcrypt:Hash',
[% FOREACH account IN accounts %]
[% template = account.profile() _ '.tt2' %]
[% PROCESS $template scope=account.scope() id=account.id() | trim %]
'[% account.internal_uid() %]:{SHA256}[% account.password_hash() %]=' => array(
'internal_uid' => array([% account.internal_uid().quote %]),
'associatedSP' => array([% account.entityid().quote %]),
'[% account.internal_uid() %]:[% account.password_hash() %]' => [
'internal_uid' => [[% account.internal_uid().quote %]],
'associatedSP' => [[% account.entityid().quote %]],
[% FOREACH pair IN attributes.pairs %]
'[% pair.key %]' => array([% pair.value.quote("'").join(', ') %]),
'[% pair.key %]' => [[% pair.value.quote("'").join(', ') %]],
[% END %]
),
],
[% END %]
);
];
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment