PHP code example of safire-ac-za / simplesamlphp-module-entattribs
1. Go to this page and download the library: Download safire-ac-za/simplesamlphp-module-entattribs library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
safire-ac-za / simplesamlphp-module-entattribs example snippets
50 => [
'class' => 'entattribs:AttributeFromEntity',
'%replace',
'urn:x-example:schacHomeOrganization' => 'schacHomeOrganization',
'urn:x-example:schacHomeOrganizationType' => 'schacHomeOrganizationType',
],
$metadata['https://idp.example.org/idp/shibboleth'] = [
/* ... */
'EntityAttributes' => [
'urn:x-example:schacHomeOrganization' => 'example.org',
'urn:x-example:schacHomeOrganizationType' => 'urn:schac:homeOrganizationType:int:other',
],
/* ... */
];
$attributes = [
'schacHomeOrganization' => 'example.org',
'schacHomeOrganizationType' => 'urn:schac:homeOrganizationType:int:other',
];