szabogyula / simplesamlphp-module-authaleph

Ex Libris Aleph的Authsource

安装: 26

依赖: 0

建议: 0

安全: 0

类型:simplesamlphp-module

v1.1.0 2019-07-02 12:10 UTC

This package is not auto-updated.

Last update: 2024-09-18 14:20:40 UTC


README

pipeline status coverage report

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