|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for sspmod_authYubiKey_Auth_Source_YubiKey:
Collaboration diagram for sspmod_authYubiKey_Auth_Source_YubiKey: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 43 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 73 of file YubiKey.php.
| 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. |
Reimplemented from SimpleSAML_Auth_Source.
Definition at line 99 of file YubiKey.php.
References SimpleSAML_Auth_Source\$authId, $id, $state, $url, AUTHID, SimpleSAML\Module\getModuleURL(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), and SimpleSAML_Auth_State\saveState().
Here is the call graph for this function:
|
static |
Return the user id part of a one time passord.
Definition at line 164 of file YubiKey.php.
Referenced by login().
Here is the caller graph for this function:
|
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 124 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().
Here is the call graph for this function:
|
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 | $otp |
Definition at line 182 of file YubiKey.php.
References $attributes, getYubiKeyPrefix(), and SimpleSAML\Logger\info().
Here is the call graph for this function:
|
private |
The client id/key for use with the Auth_Yubico PHP module.
Definition at line 64 of file YubiKey.php.
|
private |
Definition at line 65 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 59 of file YubiKey.php.
Referenced by authenticate().
| const sspmod_authYubiKey_Auth_Source_YubiKey::STAGEID = 'sspmod_authYubiKey_Auth_Source_YubiKey.state' |
The string used to identify our states.
Definition at line 48 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 54 of file YubiKey.php.