PHP Class sspmod_authX509_Auth_Source_X509userCert, simplesamlphp

Author: Emmanuel Dreyfus ([email protected])
Inheritance: extends SimpleSAML_Auth_Source
Show file Open project: simplesamlphp/simplesamlphp

Public Methods

Method Description
__construct ( array $info, &$config ) Constructor for this authentication source.
authFailed ( &$state ) Finish a failed authentication.
authSuccesful ( &$state ) Finish a succesful authentication.
authenticate ( &$state ) Validate certificate and login

Private Methods

Method Description
der2pem ( array $der_data ) Convert certificate from DER to PEM
pem2der ( array $pem_data ) Convert certificate from PEM to DER

Method Details

__construct() public method

All subclasses who implement their own constructor must call this constructor before using $config for anything.
public __construct ( array $info, &$config )
$info array Information about this authentication source.

authFailed() public method

This function can be overloaded by a child authentication class that wish to perform some operations on failure
public authFailed ( &$state )

authSuccesful() public method

This function can be overloaded by a child authentication class that wish to perform some operations after login.
public authSuccesful ( &$state )

authenticate() public method

This function try to validate the certificate. On success, the user is logged in without going through o login page. On failure, The authX509:X509error.php template is loaded.
public authenticate ( &$state )