rediris-es / simplesamlphp-module-papi
此包的最新版本(v1.0)没有可用的许可信息。
一个为PAPI协议添加支持的SimpleSAMLphp模块。
v1.0
2016-03-09 13:01 UTC
Requires
This package is auto-updated.
Last update: 2024-09-09 16:06:55 UTC
README
papi 模块提供了一个单一的认证模块
papi:PAPI
:使用 PAPI 协议进行认证。
此认证模块使用外部库 phpPoA 来通过PAPI协议认证用户。因此,它可以用于在协议之间进行桥接,表现为PAPI 接入点 或作为 服务提供者。
安装
安装SimpleSAMLphp后,安装此模块非常简单。只需在SimpleSAMLphp安装根目录下执行以下命令
composer.phar require rediris-es/simplesamlphp-module-papi:dev-master
其中 dev-master
指示Composer从Git仓库安装 master
分支。如果您想使用模块的稳定版本,请参阅版本发布。
使用方法
要使用此模块,请在 modules/papi/
目录中创建一个名为 enable
的文件来启用它。然后,您需要在 config/authsources.php
文件中添加一个使用 papi:PAPI
模块的认证源。
'example-papi' => array( 'papi:PAPI', /* * The site identifier that allows the module to determine which * configuration of the phpPoA to use. */ 'site' => 'example', /* * The Home Locator Identifier. Use this if your phpPoA configuration * points to a GPoA instead of an Authentication Server (AS), and you * want to skip the identity provider selection page, by directly * selecting one here. */ 'hli' => 'exampleAS', ),
用户属性
如果成功认证后收到了用户属性,则它们的准确名称和值将被转移到 $state['Attributes']
数组中。请注意,可能需要进行属性名称映射。在PAPI认证期间不支持请求特定属性。必须事先同意并配置释放给服务提供者的属性。