informaticauco/simplesamlphp-module-authchain

AuthSource Chain Authentication

1.0.0 2024-04-07 20:22 UTC

This package is auto-updated.

Last update: 2024-10-19 22:20:29 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.