ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($info, $config) | |
Constructor for this authentication source. More... | |
authenticate (&$state) | |
Prompt the user with a list of authentication sources. More... | |
logout (&$state) | |
Log out from this authentication source. More... | |
setPreviousSource ($source) | |
Set the previous authentication source. More... | |
getPreviousSource () | |
Get the previous authentication source. 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 | delegateAuthentication ($authId, $state) |
Delegate authentication. 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 | AUTHID = 'sspmod_multiauth_Auth_Source_MultiAuth.AuthId' |
The key of the AuthId field in the state. More... | |
const | STAGEID = 'sspmod_multiauth_Auth_Source_MultiAuth.StageId' |
The string used to identify our states. More... | |
const | SOURCESID = 'sspmod_multiauth_Auth_Source_MultiAuth.SourceId' |
The key where the sources is saved in the state. More... | |
const | SESSION_SOURCE = 'multiauth:selectedSource' |
The key where the selected source is saved in the session. More... | |
Private Attributes | |
$sources | |
Array of sources we let the user chooses among. More... | |
Additional Inherited Members | |
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 11 of file MultiAuth.php.
sspmod_multiauth_Auth_Source_MultiAuth::__construct | ( | $info, | |
$config | |||
) |
Constructor for this authentication source.
array | $info | Information about this authentication source. |
array | $config | Configuration. |
Definition at line 44 of file MultiAuth.php.
References $config, $defaultLanguage, $info, $source, $text, SimpleSAML_Configuration\getConfig(), and SimpleSAML_Configuration\getInstance().
sspmod_multiauth_Auth_Source_MultiAuth::authenticate | ( | & | $state | ) |
Prompt the user with a list of authentication sources.
This method saves the information about the configured sources, and redirects to a page where the user must select one of these authentication sources.
This method never return. The authentication process is finished in the delegateAuthentication method.
array | &$state | Information about the current authentication. |
Definition at line 104 of file MultiAuth.php.
References $_GET, SimpleSAML_Auth_Source\$authId, $id, PHPMailer\PHPMailer\$params, $sources, $state, $url, SimpleSAML\Module\getModuleURL(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), and SimpleSAML_Auth_State\saveState().
|
static |
Delegate authentication.
This method is called once the user has choosen one authentication source. It saves the selected authentication source in the session to be able to logout properly. Then it calls the authenticate method on such selected authentication source.
string | $authId | Selected authentication source |
array | $state | Information about the current authentication. |
Definition at line 141 of file MultiAuth.php.
References $as, SimpleSAML_Auth_Source\$authId, $session, $state, SimpleSAML_Auth_Source\completeAuth(), SimpleSAML_Session\DATA_TIMEOUT_SESSION_END, SimpleSAML_Auth_Source\getById(), SimpleSAML_Session\getSessionFromRequest(), and SimpleSAML_Auth_State\throwException().
sspmod_multiauth_Auth_Source_MultiAuth::getPreviousSource | ( | ) |
Get the previous authentication source.
This method retrieves the authentication source that the user selected last time or NULL if this is the first time or remembering is disabled.
Definition at line 226 of file MultiAuth.php.
References $_COOKIE, SimpleSAML_Auth_Source\$authId, and $cookieName.
sspmod_multiauth_Auth_Source_MultiAuth::logout | ( | & | $state | ) |
Log out from this authentication source.
This method retrieves the authentication source used for this session and then call the logout method on it.
array | &$state | Information about the current logout operation. |
Definition at line 179 of file MultiAuth.php.
References SimpleSAML_Auth_Source\$authId, $session, $source, $state, SimpleSAML_Auth_Source\getById(), and SimpleSAML_Session\getSessionFromRequest().
sspmod_multiauth_Auth_Source_MultiAuth::setPreviousSource | ( | $source | ) |
Set the previous authentication source.
This method remembers the authentication source that the user selected by storing its name in a cookie.
string | $source | Name of the authentication source the user selected. |
Definition at line 202 of file MultiAuth.php.
References SimpleSAML_Auth_Source\$authId, $config, $cookieName, PHPMailer\PHPMailer\$params, $source, SimpleSAML_Configuration\getInstance(), and SimpleSAML\Utils\HTTP\setCookie().
|
private |
Array of sources we let the user chooses among.
Definition at line 36 of file MultiAuth.php.
Referenced by authenticate().
const sspmod_multiauth_Auth_Source_MultiAuth::AUTHID = 'sspmod_multiauth_Auth_Source_MultiAuth.AuthId' |
The key of the AuthId field in the state.
Definition at line 16 of file MultiAuth.php.
const sspmod_multiauth_Auth_Source_MultiAuth::SESSION_SOURCE = 'multiauth:selectedSource' |
The key where the selected source is saved in the session.
Definition at line 31 of file MultiAuth.php.
const sspmod_multiauth_Auth_Source_MultiAuth::SOURCESID = 'sspmod_multiauth_Auth_Source_MultiAuth.SourceId' |
The key where the sources is saved in the state.
Definition at line 26 of file MultiAuth.php.
const sspmod_multiauth_Auth_Source_MultiAuth::STAGEID = 'sspmod_multiauth_Auth_Source_MultiAuth.StageId' |
The string used to identify our states.
Definition at line 21 of file MultiAuth.php.