ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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. |
Definition at line 38 of file X509userCert.php.
References $config, and $info.
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. |
Definition at line 90 of file X509userCert.php.
References $_SERVER, $attributes, $ldapcf, $state, array, authFailed(), authSuccesful(), SimpleSAML\Utils\Crypto\der2pem(), SimpleSAML\Logger\error(), and SimpleSAML\Logger\info().
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().
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().
|
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.