szabogyula / simplesamlphp-module-authaleph
Ex Libris Aleph的Authsource
v1.1.0
2019-07-02 12:10 UTC
Requires
Requires (Dev)
- phpunit/php-file-iterator: ^1.0
- phpunit/phpunit: ~3.7
- simplesamlphp/simplesamlphp: ^1.14
This package is not auto-updated.
Last update: 2024-09-18 14:20:40 UTC
README
AuthAleph
本模块通过simpleSAMLphp的强大功能,将Ex Libris Aleph作为身份提供者角色参与SAML联邦。
安装
您可以通过composer轻松将模块安装到simpleSAMLphp实例:
composer require szabogyula/simplesamlphp-module-authaleph
使用方法
编辑config/authsources.php
$config = array(
...
'authaleph' => array(
'authaleph:Auth',
// base url of the aleph X service, ex: http://aleph.net
'alephUrl' => "http://aleph.net",
// the scope of the IdP. The ePPN generate with this postfix.
// and the eduPersonScopedAffiliaton ex: aleph.net
//
'scope' => "aleph.net",
// the Z308 key type of the account used for authentication, ex: 02
'usernameContainerZ308KeyType' => "02",
// Z308-status values to authorize to login. Has to be an array. Required.
'authorizedStatuses' => ['ED'],
// _optional_ help and registration url-s.
// 'registrationUrl' => 'http://aleph.net/registration',
// 'helpUrl' => 'http://aleph.net/help',
),
...
);
您应该通过修改resources/templates/login.html.twig
来自定义登录表单。它使用Twig模板引擎。
开发
在开发目录中查看。您将找到提供身份提供者的ansible角色和Dockerfile。将代码挂载到容器中可以轻松进行编码。
构建和运行docker
cd development; docker-compose up
债务
- i18n