ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($info, $config) | |
Constructor for this authentication source. More... | |
authenticate (&$state) | |
Initialize login. 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... | |
Static Public Member Functions | |
static | handleLogin ($authStateId, $otp) |
Handle login request. More... | |
static | getYubiKeyPrefix ($otp) |
Return the user id part of a one time passord. More... | |
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... | |
Data Fields | |
const | STAGEID = 'sspmod_authYubiKey_Auth_Source_YubiKey.state' |
The string used to identify our states. More... | |
const | TOKENSIZE = 32 |
The number of characters of the OTP that is the secure token. More... | |
const | AUTHID = 'sspmod_authYubiKey_Auth_Source_YubiKey.AuthId' |
The key of the AuthId field in the state. More... | |
Protected Member Functions | |
login ($otp) | |
Attempt to log in using the given username and password. 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... | |
Private Attributes | |
$yubi_id | |
The client id/key for use with the Auth_Yubico PHP module. More... | |
$yubi_key | |
Additional Inherited Members | |
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 42 of file YubiKey.php.
sspmod_authYubiKey_Auth_Source_YubiKey::__construct | ( | $info, | |
$config | |||
) |
Constructor for this authentication source.
array | $info | Information about this authentication source. |
array | $config | Configuration. |
Definition at line 72 of file YubiKey.php.
References $config, and $info.
sspmod_authYubiKey_Auth_Source_YubiKey::authenticate | ( | & | $state | ) |
Initialize login.
This function saves the information about the login, and redirects to a login page.
array | &$state | Information about the current authentication. |
Definition at line 97 of file YubiKey.php.
References SimpleSAML_Auth_Source\$authId, $id, $state, $url, array, SimpleSAML\Module\getModuleURL(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), and SimpleSAML_Auth_State\saveState().
|
static |
Return the user id part of a one time passord.
Definition at line 162 of file YubiKey.php.
|
static |
Handle login request.
This function is used by the login form (core/www/loginuserpass.php) when the user enters a username and password. On success, it will not return. On wrong username/password failure, it will return the error code. Other failures will throw an exception.
string | $authStateId | The identifier of the authentication state. |
string | $otp | The one time password entered- |
Definition at line 122 of file YubiKey.php.
References $attributes, $authStateId, $source, $state, SimpleSAML_Auth_Source\completeAuth(), SimpleSAML_Auth_Source\getById(), SimpleSAML_Error_Error\getErrorCode(), and SimpleSAML_Auth_State\loadState().
|
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. |
Definition at line 180 of file YubiKey.php.
References $attributes, $auth, array, and SimpleSAML\Logger\info().
|
private |
The client id/key for use with the Auth_Yubico PHP module.
Definition at line 63 of file YubiKey.php.
|
private |
Definition at line 64 of file YubiKey.php.
const sspmod_authYubiKey_Auth_Source_YubiKey::AUTHID = 'sspmod_authYubiKey_Auth_Source_YubiKey.AuthId' |
The key of the AuthId field in the state.
Definition at line 58 of file YubiKey.php.
const sspmod_authYubiKey_Auth_Source_YubiKey::STAGEID = 'sspmod_authYubiKey_Auth_Source_YubiKey.state' |
The string used to identify our states.
Definition at line 47 of file YubiKey.php.
const sspmod_authYubiKey_Auth_Source_YubiKey::TOKENSIZE = 32 |
The number of characters of the OTP that is the secure token.
The rest is the user id.
Definition at line 53 of file YubiKey.php.