ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($info, $config) | |
Constructor for SAML SP authentication source. More... | |
getMetadataURL () | |
Retrieve the URL to the metadata of this SP. More... | |
getEntityId () | |
Retrieve the entity id of this SP. More... | |
getMetadata () | |
Retrieve the metadata of this SP. More... | |
getIdPMetadata ($entityId) | |
Retrieve the metadata of an IdP. More... | |
sendSAML2AuthnRequest (array &$state, \SAML2\Binding $binding, \SAML2\AuthnRequest $ar) | |
Function to actually send the authentication request. More... | |
startSSO ($idp, array $state) | |
Send a SSO request to an IdP. More... | |
authenticate (&$state) | |
Start login. More... | |
reauthenticate (array &$state) | |
Re-authenticate an user. More... | |
startSLO2 (&$state) | |
Start a SAML 2 logout operation. More... | |
logout (&$state) | |
Start logout operation. More... | |
handleResponse (array $state, $idp, array $attributes) | |
Handle a response from a SSO operation. More... | |
handleLogout ($idpEntityId) | |
Handle a logout request from an IdP. 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... | |
Static Public Member Functions | |
static | askForIdPChange (array &$state) |
Ask the user to log out before being able to log in again with a different identity provider. More... | |
static | reauthLogout (array $state) |
Log the user out before logging in again. More... | |
static | reauthPostLogin (array $state) |
Complete login operation after re-authenticating the user on another IdP. More... | |
static | handleUnsolicitedAuth ($authId, array $state, $redirectTo) |
Handle an unsolicited login operations. More... | |
static | onProcessingCompleted (array $authProcState) |
Called when we have completed the procssing chain. 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... | |
Private Member Functions | |
startSSO1 (SimpleSAML_Configuration $idpMetadata, array $state) | |
Send a SAML1 SSO request to an IdP. More... | |
startSSO2 (SimpleSAML_Configuration $idpMetadata, array $state) | |
Send a SAML2 SSO request to an IdP. More... | |
startDisco (array $state) | |
Start an IdP discovery service operation. More... | |
Private Attributes | |
$entityId | |
$metadata | |
$idp | |
$discoURL | |
Additional Inherited Members | |
![]() | |
addLogoutCallback ($assoc, $state) | |
Add a logout callback association. More... | |
callLogoutCallback ($assoc) | |
Call a logout callback based on association. More... | |
![]() | |
static | validateSource ($source, $id) |
Make sure that the first element of an auth source is its identifier. More... | |
![]() | |
$authId | |
sspmod_saml_Auth_Source_SP::__construct | ( | $info, | |
$config | |||
) |
Constructor for SAML SP authentication source.
array | $info | Information about this authentication source. |
array | $config | Configuration. |
Definition at line 39 of file SP.php.
References $config, $info, getMetadataURL(), SimpleSAML\Module\getModuleURL(), and SimpleSAML_Configuration\loadFromArray().
|
static |
Ask the user to log out before being able to log in again with a different identity provider.
Note that this method is intended for instances of SimpleSAMLphp running as a SAML proxy, and therefore acting both as an SP and an IdP at the same time.
This method will never return.
array | $state | The state array. The following keys must be defined in the array:
|
SimpleSAML_Error_NoPassive | In case the authentication request was passive. |
Definition at line 527 of file SP.php.
References $id, $url, SimpleSAML\Module\getModuleURL(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), and SimpleSAML_Auth_State\saveState().
sspmod_saml_Auth_Source_SP::authenticate | ( | & | $state | ) |
Start login.
This function saves the information about the login, and redirects to the IdP.
array | &$state | Information about the current authentication. |
Definition at line 386 of file SP.php.
References SimpleSAML_Auth_Source\$authId, $idp, $mdh, $state, SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler(), startDisco(), and startSSO().
sspmod_saml_Auth_Source_SP::getEntityId | ( | ) |
Retrieve the entity id of this SP.
Definition at line 81 of file SP.php.
References $entityId.
Referenced by SAML2\Assertion\Validation\ConstraintValidator\SpIsValidAudience\validate().
sspmod_saml_Auth_Source_SP::getIdPMetadata | ( | $entityId | ) |
Retrieve the metadata of an IdP.
string | $entityId | The entity id of the IdP. |
Definition at line 102 of file SP.php.
References $entityId, SimpleSAML\Logger\debug(), and SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler().
Referenced by reauthenticate(), startSLO2(), and startSSO().
sspmod_saml_Auth_Source_SP::getMetadata | ( | ) |
Retrieve the metadata of this SP.
Definition at line 91 of file SP.php.
References $metadata.
sspmod_saml_Auth_Source_SP::getMetadataURL | ( | ) |
Retrieve the URL to the metadata of this SP.
Definition at line 71 of file SP.php.
References SimpleSAML\Module\getModuleURL().
Referenced by __construct().
sspmod_saml_Auth_Source_SP::handleLogout | ( | $idpEntityId | ) |
Handle a logout request from an IdP.
string | $idpEntityId | The entity ID of the IdP. |
Definition at line 736 of file SP.php.
References $idpEntityId, and SimpleSAML_Auth_Source\callLogoutCallback().
sspmod_saml_Auth_Source_SP::handleResponse | ( | array | $state, |
$idp, | |||
array | $attributes | ||
) |
Handle a response from a SSO operation.
array | $state | The authentication state. |
string | $idp | The entity id of the IdP. |
array | $attributes | The attributes. |
Definition at line 693 of file SP.php.
References $idp, and $idpMetadata.
|
static |
Handle an unsolicited login operations.
This method creates a session from the information received. It will then redirect to the given URL. This is used to handle IdP initiated SSO. This method will never return.
string | $authId | The id of the authentication source that received the request. |
array | $state | A state array. |
string | $redirectTo | The URL we should redirect the user to after updating the session. The function will check if the URL is allowed, so there is no need to manually check the URL on beforehand. Please refer to the 'trusted.url.domains' configuration directive for more information about allowing (or disallowing) URLs. |
Definition at line 758 of file SP.php.
References SimpleSAML_Auth_Source\$authId, $session, SimpleSAML_Auth_State\getPersistentAuthData(), SimpleSAML_Session\getSessionFromRequest(), and SimpleSAML\Utils\HTTP\redirectUntrustedURL().
Referenced by SimpleSAML_Auth_Default\handleUnsolicitedAuth().
sspmod_saml_Auth_Source_SP::logout | ( | & | $state | ) |
Start logout operation.
array | $state | The logout state. |
Definition at line 667 of file SP.php.
References startSLO2().
|
static |
Called when we have completed the procssing chain.
array | $authProcState | The processing chain state. |
Definition at line 774 of file SP.php.
References $source, $sourceId, SimpleSAML_Auth_Source\completeAuth(), and SimpleSAML_Auth_Source\getById().
sspmod_saml_Auth_Source_SP::reauthenticate | ( | array & | $state | ) |
Re-authenticate an user.
This function is called by the IdP to give the authentication source a chance to interact with the user even in the case when the user is already authenticated.
array | &$state | Information about the current authentication. |
Definition at line 444 of file SP.php.
References SimpleSAML_Auth_Source\$authId, $data, $mdh, $session, getIdPMetadata(), SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler(), SimpleSAML_Session\getSessionFromRequest(), and SimpleSAML\Logger\warning().
|
static |
Log the user out before logging in again.
This method will never return.
array | $state | The state array. |
Definition at line 556 of file SP.php.
References $idp, SimpleSAML\Logger\debug(), and SimpleSAML_IdP\getByState().
|
static |
Complete login operation after re-authenticating the user on another IdP.
array | $state | The authentication state. |
Definition at line 575 of file SP.php.
References SimpleSAML_Auth_Source\$authId, $idp, $session, $state, SimpleSAML\Logger\debug(), SimpleSAML_Auth_Source\getById(), SimpleSAML_Auth_State\getPersistentAuthData(), and SimpleSAML_Session\getSessionFromRequest().
sspmod_saml_Auth_Source_SP::sendSAML2AuthnRequest | ( | array & | $state, |
\SAML2\Binding | $binding, | ||
\SAML2\AuthnRequest | $ar | ||
) |
Function to actually send the authentication request.
This function does not return.
array | &$state | The state array. |
\SAML2\Binding | $binding | The binding. |
\SAML2\AuthnRequest | $ar | The authentication request. |
Definition at line 313 of file SP.php.
Referenced by startSSO2().
|
private |
Start an IdP discovery service operation.
array | $state | The state array. |
Definition at line 350 of file SP.php.
References $discoURL, $id, PHPMailer\PHPMailer\$params, $returnTo, SimpleSAML\Module\getModuleURL(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), and SimpleSAML_Auth_State\saveState().
Referenced by authenticate().
sspmod_saml_Auth_Source_SP::startSLO2 | ( | & | $state | ) |
Start a SAML 2 logout operation.
array | $state | The logout state. |
Definition at line 619 of file SP.php.
References $encryptNameId, $endpoint, $id, $idpMetadata, $lr, $nameId, $sessionIndex, sspmod_saml_Message\buildLogoutRequest(), SAML2\Binding\getBinding(), sspmod_saml_Message\getEncryptionKey(), getIdPMetadata(), SimpleSAML\Logger\info(), and SimpleSAML_Auth_State\saveState().
Referenced by logout().
sspmod_saml_Auth_Source_SP::startSSO | ( | $idp, | |
array | $state | ||
) |
Send a SSO request to an IdP.
string | $idp | The entity ID of the IdP. |
array | $state | The state array for the current authentication. |
Definition at line 325 of file SP.php.
References $idp, $idpMetadata, $type, getIdPMetadata(), startSSO1(), and startSSO2().
Referenced by authenticate().
|
private |
Send a SAML1 SSO request to an IdP.
SimpleSAML_Configuration | $idpMetadata | The metadata of the IdP. |
array | $state | The state array for the current authentication. |
Definition at line 141 of file SP.php.
References $id, $idpEntityId, $url, SimpleSAML\Logger\debug(), SimpleSAML_Configuration\getBoolean(), SimpleSAML\Module\getModuleURL(), SimpleSAML_Configuration\getString(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), and SimpleSAML_Auth_State\saveState().
Referenced by startSSO().
|
private |
Send a SAML2 SSO request to an IdP.
SimpleSAML_Configuration | $idpMetadata | The metadata of the IdP. |
array | $state | The state array for the current authentication. |
Definition at line 177 of file SP.php.
References $dst, $id, SimpleSAML\Utils\Arrays\arrayize(), SAML2\Constants\BINDING_HOK_SSO, sspmod_saml_Message\buildAuthnRequest(), SAML2\Constants\COMPARISON_EXACT, SimpleSAML\Logger\debug(), SimpleSAML_Configuration\getArray(), SAML2\Binding\getBinding(), SimpleSAML_Configuration\getDefaultEndpoint(), SimpleSAML_Configuration\getEndpointPrioritizedByBinding(), SimpleSAML_Configuration\getInteger(), SimpleSAML_Configuration\getString(), SimpleSAML_Auth_State\saveState(), sendSAML2AuthnRequest(), and SimpleSAML_Auth_State\throwException().
Referenced by startSSO().
|
private |
Definition at line 31 of file SP.php.
Referenced by startDisco().
|
private |
Definition at line 10 of file SP.php.
Referenced by getEntityId(), and getIdPMetadata().
|
private |
Definition at line 24 of file SP.php.
Referenced by authenticate(), handleResponse(), reauthLogout(), reauthPostLogin(), and startSSO().
|
private |
Definition at line 17 of file SP.php.
Referenced by getMetadata().