ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
A processing filter to replace the 'otp' attribute with an attribute 'yubiPrefix' that contains the static YubiKey prefix. More...
Public Member Functions | |
process (&$state) | |
Filter out YubiKey 'otp' attribute and replace it with a 'yubiPrefix' attribute that leaves out the dynamic part. More... | |
Public Member Functions inherited from SimpleSAML_Auth_ProcessingFilter | |
__construct (&$config, $reserved) | |
Constructor for a processing filter. More... | |
process (&$request) | |
Process a request. More... | |
Additional Inherited Members | |
Data Fields inherited from SimpleSAML_Auth_ProcessingFilter | |
$priority = 50 | |
Priority of this filter. More... | |
A processing filter to replace the 'otp' attribute with an attribute 'yubiPrefix' that contains the static YubiKey prefix.
Before: otp=ekhgjhbctrgnubeeklijcibbgjnbtjlffdnjbhjluvur
After: otp undefined yubiPrefix=ekhgjhbctrgn
You use it by adding it as an authentication filter in config.php:
'authproc.idp' => array(
... 90 => 'authYubiKey:OTP2YubiPrefix', ... );
Definition at line 45 of file OTP2YubiPrefix.php.
sspmod_authYubiKey_Auth_Process_OTP2YubiPrefix::process | ( | & | $state | ) |
Filter out YubiKey 'otp' attribute and replace it with a 'yubiPrefix' attribute that leaves out the dynamic part.
array | &$state | The state we should update. |
Definition at line 54 of file OTP2YubiPrefix.php.
References $attributes, $state, SimpleSAML\Logger\debug(), and SimpleSAML\Logger\info().