|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for sspmod_authX509_Auth_Source_X509userCert:
Collaboration diagram for sspmod_authX509_Auth_Source_X509userCert:Public Member Functions | |
| __construct ($info, &$config) | |
| Constructor for this authentication source. More... | |
| authFailed (&$state) | |
| Finish a failed authentication. More... | |
| authenticate (&$state) | |
| Validate certificate and login. More... | |
| authSuccesful (&$state) | |
| Finish a successful authentication. More... | |
Public Member Functions inherited from SimpleSAML_Auth_Source | |
| __construct ($info, &$config) | |
| Constructor for an authentication source. More... | |
| getAuthId () | |
| Retrieve the ID of this authentication source. More... | |
| authenticate (&$state) | |
| Process a request. More... | |
| reauthenticate (array &$state) | |
| Reauthenticate an user. More... | |
| initLogin ($return, $errorURL=null, array $params=array()) | |
| Start authentication. More... | |
| logout (&$state) | |
| Log out from this authentication source. More... | |
Private Attributes | |
| $x509attributes = array('UID' => 'uid') | |
| x509 attributes to use from the certificate for searching the user in the LDAP directory. More... | |
| $ldapusercert = array('userCertificate;binary') | |
| LDAP attribute containing the user certificate. More... | |
| $ldapcf | |
| LDAPConfigHelper object. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from SimpleSAML_Auth_Source | |
| static | getSourcesOfType ($type) |
| Get sources of a specific type. More... | |
| static | completeAuth (&$state) |
| Complete authentication. More... | |
| static | loginCompleted ($state) |
| Called when a login operation has finished. More... | |
| static | completeLogout (&$state) |
| Complete logout. More... | |
| static | getById ($authId, $type=null) |
| Retrieve authentication source. More... | |
| static | logoutCallback ($state) |
| Called when the authentication source receives an external logout request. More... | |
| static | getSources () |
| Retrieve list of authentication sources. More... | |
Protected Member Functions inherited from SimpleSAML_Auth_Source | |
| addLogoutCallback ($assoc, $state) | |
| Add a logout callback association. More... | |
| callLogoutCallback ($assoc) | |
| Call a logout callback based on association. More... | |
Static Protected Member Functions inherited from SimpleSAML_Auth_Source | |
| static | validateSource ($source, $id) |
| Make sure that the first element of an auth source is its identifier. More... | |
Protected Attributes inherited from SimpleSAML_Auth_Source | |
| $authId | |
Definition at line 9 of file X509userCert.php.
| sspmod_authX509_Auth_Source_X509userCert::__construct | ( | $info, | |
| & | $config | ||
| ) |
Constructor for this authentication source.
All subclasses who implement their own constructor must call this constructor before using $config for anything.
| array | $info | Information about this authentication source. |
| array | &$config | Configuration for this authentication source. |
Reimplemented from SimpleSAML_Auth_Source.
Definition at line 38 of file X509userCert.php.
| sspmod_authX509_Auth_Source_X509userCert::authenticate | ( | & | $state | ) |
Validate certificate and login.
This function try to validate the certificate. On success, the user is logged in without going through the login page. On failure, The authX509:X509error.php template is loaded.
| array | &$state | Information about the current authentication. |
Reimplemented from SimpleSAML_Auth_Source.
Definition at line 90 of file X509userCert.php.
References $_SERVER, $attributes, $ldapcf, $state, authFailed(), authSuccesful(), SimpleSAML\Utils\Crypto\der2pem(), SimpleSAML\Logger\error(), and SimpleSAML\Logger\info().
Here is the call graph for this function:| sspmod_authX509_Auth_Source_X509userCert::authFailed | ( | & | $state | ) |
Finish a failed authentication.
This function can be overloaded by a child authentication class that wish to perform some operations on failure.
| array | &$state | Information about the current authentication. |
Definition at line 69 of file X509userCert.php.
References $config, $state, $t, exit, SimpleSAML\Error\ErrorCodes\getAllErrorCodeMessages(), and SimpleSAML_Configuration\getInstance().
Referenced by authenticate().
Here is the call graph for this function:
Here is the caller graph for this function:| sspmod_authX509_Auth_Source_X509userCert::authSuccesful | ( | & | $state | ) |
Finish a successful authentication.
This function can be overloaded by a child authentication class that wish to perform some operations after login.
| array | &$state | Information about the current authentication. |
Definition at line 199 of file X509userCert.php.
References $state, and SimpleSAML_Auth_Source\completeAuth().
Referenced by authenticate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
LDAPConfigHelper object.
Definition at line 27 of file X509userCert.php.
Referenced by authenticate().
|
private |
LDAP attribute containing the user certificate.
Definition at line 21 of file X509userCert.php.
|
private |
x509 attributes to use from the certificate for searching the user in the LDAP directory.
Definition at line 15 of file X509userCert.php.