niif/simplesamlphp-module-attributefromrestapi
最新稳定版本:v1.0.0
Composer 安装命令:
composer require niif/simplesamlphp-module-attributefromrestapi
包简介
Get attribute from any rest api
README 文档
README
- Author: Gyula Szabó gyufi@niif.hu, NIIF Institute, Hungary
This module provides an authprocfilter, that get attributes from rest api in json format.
Install module
You can install the module with composer:
composer require niif/simplesamlphp-module-attributefromrestapi
Authproc Filters
The NameID of the request will be in the attribute as defined above. For example eduPersonPrincipalName. If this nameId is not in the users's attributes there will be shown an exception page, and the authentication process will be stopped.
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',
),
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-10-30