informaticauco/simplesamlphp-module-authchain

AuthSource Chain Authentication

Installs: 114

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 3

Open Issues: 1

Type:simplesamlphp-module

pkg:composer/informaticauco/simplesamlphp-module-authchain

1.0.0 2024-04-07 20:22 UTC

This package is auto-updated.

Last update: 2025-09-20 00:23:14 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.