niif / simplesamlphp-module-attributefromrestapi
此软件包最新版本(v1.0.0)没有提供许可信息。
从任何REST API获取属性
v1.0.0
2015-10-30 11:26 UTC
Requires
This package is auto-updated.
Last update: 2024-09-08 01:29:11 UTC
README
- 作者:Gyula Szabó gyufi@niif.hu,匈牙利NIIF研究所
本模块提供了一个authprocfilter,可以从REST API以JSON格式获取属性。
安装模块
您可以使用composer安装此模块
composer require niif/simplesamlphp-module-attributefromrestapi
Authproc过滤器
请求的NameID将按照上述定义作为属性。例如eduPersonPrincipalName。如果此nameId不在用户的属性中,将显示异常页面,并停止认证过程。
config/config.php
authproc.sp = array(
...
'60' => array(
'class' => 'attributefromrestapi:AttributeFromRestApi',
'nameId_attribute_name' => 'subject_nameid', // look at the aa authsource config
'api_url' => 'https://www.anyrestapi.com/getData',
),