niif / simplesamlphp-module-attributefromrestapi
There is no license information available for the latest version (v1.0.0) of this package.
Get attribute from any rest api
Package info
github.com/NIIF/simplesamlphp-module-attributefromrestapi
Type:simplesamlphp-module
pkg:composer/niif/simplesamlphp-module-attributefromrestapi
v1.0.0
2015-10-30 11:26 UTC
Requires
This package is auto-updated.
Last update: 2026-03-08 04:48:10 UTC
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',
),