informaticauco/simplesamlphp-module-authchain

AuthSource Chain Authentication

0.1.0 2018-11-03 15:48 UTC

This package is auto-updated.

Last update: 2022-06-29 01:13:50 UTC


README

This module try to identify an user with multiple AuthSources in chain.

Requirements

  • PHP>=5.5

Installation

Installation can be as easy as executing:

bash$ composer require informaticauco/simplesamlphp-module-authchain

Usage

Edit 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.