ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($info, $config) | |
Constructor for this authentication source. More... | |
finalStep (&$state) | |
Called by linkback, to finish validate/ finish logging in. More... | |
authenticate (&$state) | |
Log-in using cas. More... | |
logout (&$state) | |
Log out from this authentication source. 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... | |
Data Fields | |
const | STAGE_INIT = 'sspmod_cas_Auth_Source_CAS.state' |
The string used to identify our states. More... | |
const | AUTHID = 'sspmod_cas_Auth_Source_CAS.AuthId' |
The key of the AuthId field in the state. More... | |
Protected Member Functions | |
casValidation ($ticket, $service) | |
Main validation method, redirects to correct method (keeps finalStep clean) More... | |
![]() | |
addLogoutCallback ($assoc, $state) | |
Add a logout callback association. More... | |
callLogoutCallback ($assoc) | |
Call a logout callback based on association. More... | |
Private Member Functions | |
casValidate ($ticket, $service) | |
This the most simple version of validating, this provides only authentication validation. More... | |
casServiceValidate ($ticket, $service) | |
Uses the cas service validate, this provides additional attributes. More... | |
Private Attributes | |
$_ldapConfig | |
$_casConfig | |
$_validationMethod | |
$_loginMethod | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
static | validateSource ($source, $id) |
Make sure that the first element of an auth source is its identifier. More... | |
![]() | |
$authId | |
sspmod_cas_Auth_Source_CAS::__construct | ( | $info, | |
$config | |||
) |
Constructor for this authentication source.
array | $info | Information about this authentication source. |
array | $config | Configuration. |
Definition at line 50 of file CAS.php.
sspmod_cas_Auth_Source_CAS::authenticate | ( | & | $state | ) |
Log-in using cas.
array | &$state | Information about the current authentication. |
Reimplemented from SimpleSAML_Auth_Source.
Definition at line 196 of file CAS.php.
References SimpleSAML_Auth_Source\$authId, $state, AUTHID, SimpleSAML\Module\getModuleURL(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), and SimpleSAML_Auth_State\saveState().
|
private |
Uses the cas service validate, this provides additional attributes.
string | $ticket | |
string | $service |
Definition at line 114 of file CAS.php.
References $attributes, $failure, $name, $query, $result, $service, $success, $url, SimpleSAML\Utils\HTTP\fetch(), and SAML2\DOMDocumentFactory\fromString().
Referenced by casValidation().
|
private |
This the most simple version of validating, this provides only authentication validation.
string | $ticket | |
string | $service |
Definition at line 91 of file CAS.php.
References $res, $result, $service, $url, and SimpleSAML\Utils\HTTP\fetch().
Referenced by casValidation().
|
protected |
Main validation method, redirects to correct method (keeps finalStep clean)
string | $ticket | |
string | $service |
Definition at line 153 of file CAS.php.
References $service, casServiceValidate(), and casValidate().
Referenced by finalStep().
sspmod_cas_Auth_Source_CAS::finalStep | ( | & | $state | ) |
Called by linkback, to finish validate/ finish logging in.
state | $state |
Definition at line 172 of file CAS.php.
References $attributes, $service, $state, casValidation(), SimpleSAML_Auth_Source\completeAuth(), SimpleSAML\Module\getModuleURL(), and SimpleSAML_Auth_State\saveState().
sspmod_cas_Auth_Source_CAS::logout | ( | & | $state | ) |
Log out from this authentication source.
This function should be overridden if the authentication source requires special steps to complete a logout operation.
If the logout process requires a redirect, the state should be saved. Once the logout operation is completed, the state should be restored, and completeLogout should be called with the state. If this operation can be completed without showing the user a page, or redirecting, this function should return.
array | &$state | Information about the current logout operation. |
Reimplemented from SimpleSAML_Auth_Source.
Definition at line 226 of file CAS.php.
References $state, SimpleSAML_Auth_State\deleteState(), and SimpleSAML\Utils\HTTP\redirectTrustedURL().
const sspmod_cas_Auth_Source_CAS::AUTHID = 'sspmod_cas_Auth_Source_CAS.AuthId' |
The key of the AuthId field in the state.
Definition at line 21 of file CAS.php.
Referenced by authenticate().
const sspmod_cas_Auth_Source_CAS::STAGE_INIT = 'sspmod_cas_Auth_Source_CAS.state' |