niif / simplesamlphp-module-attributefromrestapi
Get attribute from any rest api
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 8
Forks: 1
Open Issues: 0
Type:simplesamlphp-module
Requires
This package is auto-updated.
Last update: 2024-11-08 02:02:36 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',
),