This package is currently under development...
use Nisaac2fly\AuthSamlWrapper\SimpleSamlServiceProvider;
$path = __DIR__ . '/../path/to/saml/lib/_autoload.php';
$source = 'default-sp';
$auth = new SimpleSamlServiceProvider($path, $source);
$auth->register();
$saml = $auth->saml();
More to come...
// config/app.php
'providers' => [
'...',
'Nisaac2fly\AuthSamlWrapper\AuthSamlWrapperServiceProvider'
];
use Nisaac2fly\AuthSamlWrapper\Helpers\AttributeSanitizer;
$sanitizer = new AttributeSanitizer($saml->attributes());
$sanitizer->setDates([
'whencreated' => 'zulu',
'lastlogon' => '18bit',
]);
$sanitizer->seTypes([
'email' => 'string',
'groups' => 'array'
]);
$attributes = $sanitizer->make();