PHP Class sspmod_core_Auth_Process_TargetedID, simplesamlphp

By default, this filter will generate the ID based on the UserID of the current user. This is by default generated from the attribute configured in 'userid.attribute' in the metadata. If this attribute isn't present, the userid will be generated from the eduPersonPrincipalName attribute, if it is present. It is possible to generate this attribute from another attribute by specifying this attribute in this configuration. Example - generate from user ID: 'authproc' => array( 50 => 'core:TargetedID', ) Example - generate from mail-attribute: 'authproc' => array( 50 => array('class' => 'core:TargetedID' , 'attributename' => 'mail'), ),
Author: Olav Morken, UNINETT AS.
Inheritance: extends SimpleSAML_Auth_ProcessingFilter
Show file Open project: simplesamlphp/simplesamlphp Class Usage Examples

Public Methods

Method Description
__construct ( array $config, mixed $reserved ) Initialize this filter.
process ( &$state ) Apply filter to add the targeted ID.

Private Methods

Method Description
getEntityId ( array $metadata ) : string Generate ID from entity metadata.

Method Details

__construct() public method

Initialize this filter.
public __construct ( array $config, mixed $reserved )
$config array Configuration information about this filter.
$reserved mixed For future use.

process() public method

Apply filter to add the targeted ID.
public process ( &$state )