ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($info, $config) | |
Constructor for this authentication source. More... | |
![]() | |
__construct ($info, &$config) | |
Constructor for this authentication source. More... | |
setForcedUsername ($forcedUsername) | |
Set forced username. More... | |
getLoginLinks () | |
Return login links from configuration. More... | |
getRememberUsernameEnabled () | |
Getter for the authsource config option remember.username.enabled. More... | |
getRememberUsernameChecked () | |
Getter for the authsource config option remember.username.checked. More... | |
isRememberMeEnabled () | |
Check if the "remember me" feature is enabled. More... | |
isRememberMeChecked () | |
Check if the "remember me" checkbox should be checked. More... | |
authenticate (&$state) | |
Initialize login. More... | |
![]() | |
__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... | |
Protected Member Functions | |
login ($username, $password) | |
Attempt to log in using the given username and password. More... | |
login ($username, $password) | |
Attempt to log in using the given username and password. More... | |
![]() | |
addLogoutCallback ($assoc, $state) | |
Add a logout callback association. More... | |
callLogoutCallback ($assoc) | |
Call a logout callback based on association. More... | |
Private Member Functions | |
connect () | |
Create a database connection. More... | |
Private Attributes | |
$dsn | |
The DSN we should connect to. More... | |
$username | |
The username we should connect to the database with. More... | |
$password | |
The password we should connect to the database with. More... | |
$options | |
The options that we should connect to the database with. More... | |
$query | |
The query we should use to retrieve the attributes for the user. More... | |
Additional Inherited Members | |
![]() | |
static | handleLogin ($authStateId, $username, $password) |
Handle login request. More... | |
![]() | |
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... | |
![]() | |
const | STAGEID = 'sspmod_core_Auth_UserPassBase.state' |
The string used to identify our states. More... | |
const | AUTHID = 'sspmod_core_Auth_UserPassBase.AuthId' |
The key of the AuthId field in the state. More... | |
![]() | |
static | validateSource ($source, $id) |
Make sure that the first element of an auth source is its identifier. More... | |
![]() | |
$loginLinks | |
Links to pages from login page. More... | |
$rememberUsernameEnabled = FALSE | |
$rememberUsernameChecked = FALSE | |
$rememberMeEnabled = FALSE | |
$rememberMeChecked = FALSE | |
![]() | |
$authId | |
sspmod_sqlauth_Auth_Source_SQL::__construct | ( | $info, | |
$config | |||
) |
Constructor for this authentication source.
array | $info | Information about this authentication source. |
array | $config | Configuration. |
Definition at line 47 of file SQL.php.
|
private |
Create a database connection.
Definition at line 85 of file SQL.php.
|
protected |
Attempt to log in using the given username and password.
On a successful login, this function should return the users attributes. On failure, it should throw an exception. If the error was caused by the user entering the wrong username or password, a SimpleSAML_Error_Error('WRONGUSERPASS') should be thrown.
Note that both the username and the password are UTF-8 encoded.
string | $username | The username the user wrote. |
string | $password | The password the user wrote. |
Reimplemented from sspmod_core_Auth_UserPassBase.
Definition at line 128 of file SQL.php.
|
private |
|
private |
|
private |
|
private |
|
private |