项目作者: InformaticaUCO

项目描述 :
SimpleSAMLphp Chained Auth Module
高级语言: PHP
项目地址: git://github.com/InformaticaUCO/simplesamlphp-module-authchain.git
创建时间: 2018-11-03T15:48:04Z
项目社区:https://github.com/InformaticaUCO/simplesamlphp-module-authchain

开源协议:Other

下载


SimpleSAMLphp Module UCOFilter

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

Requirements

  • PHP>=5.5

Installation

Installation can be as easy as executing:

  1. bash$ composer require informaticauco/simplesamlphp-module-authchain

Usage

Edit config/authsources.php and add the next authsource:

  1. <?php
  2. use SimpleSAML\Modules\AuthChain\Auth\Source\AuthChain;
  3. $config['as1'] = [/*...*/];
  4. $config['as2'] = [/*...*/];
  5. $config['chained'] = [AuthChain::class,
  6. 'sources' => ['as1', 'as2'],
  7. ];

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.