This module try to identify an user with multiple AuthSources in chain.
- PHP>=5.5
Installation can be as easy as executing:
bash$ composer require informaticauco/simplesamlphp-module-authchainEdit config/authsources.php and add the next authsource:
<?php
use SimpleSAML\Modules\AuthChain\Auth\Source\AuthChain;
$config['as1'] = [/*...*/];
$config['as2'] = [/*...*/];
$config['chained'] = [AuthChain::class,
'sources' => ['as1', 'as2'],
];AuthSources defined in sources section must support array function login(string $username, string $password) method or will be ignored. The first AuthSource to identify the user will be used.