ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
getId () | |
Retrieve the ID of this IdP. More... | |
getConfig () | |
Retrieve the configuration for this IdP. More... | |
getSPName ($assocId) | |
Get SP name. More... | |
addAssociation (array $association) | |
Add an SP association. More... | |
getAssociations () | |
Retrieve list of SP associations. More... | |
terminateAssociation ($assocId) | |
Remove an SP association. More... | |
isAuthenticated () | |
Is the current user authenticated? More... | |
handleAuthenticationRequest (array &$state) | |
Process authentication requests. More... | |
getLogoutHandler () | |
Find the logout handler of this IdP. More... | |
finishLogout (array &$state) | |
Finish the logout operation. More... | |
handleLogoutRequest (array &$state, $assocId) | |
Process a logout request. More... | |
handleLogoutResponse ($assocId, $relayState, SimpleSAML_Error_Exception $error=null) | |
Process a logout response. More... | |
doLogoutRedirect ($url) | |
Log out, then redirect to a URL. More... | |
Static Public Member Functions | |
static | getById ($id) |
Retrieve an IdP by ID. More... | |
static | getByState (array &$state) |
Retrieve the IdP "owning" the state. More... | |
static | postAuthProc (array $state) |
Called after authproc has run. More... | |
static | postAuth (array $state) |
The user is authenticated. More... | |
static | finishLogoutRedirect (SimpleSAML_IdP $idp, array $state) |
Redirect to a URL after logout. More... | |
Private Member Functions | |
__construct ($id) | |
Initialize an IdP. More... | |
authenticate (array &$state) | |
Authenticate the user. More... | |
reauthenticate (array &$state) | |
Re-authenticate the user. More... | |
Private Attributes | |
$id | |
$associationGroup | |
$config | |
$authSource | |
Static Private Attributes | |
static | $idpCache = array() |
|
private |
Initialize an IdP.
string | $id | The identifier of this IdP. |
SimpleSAML_Error_Exception | If the IdP is disabled or no such auth source was found. |
Definition at line 64 of file IdP.php.
References $auth, $globalConfig, $id, $metadata, SimpleSAML_Auth_Source\getById(), SimpleSAML_Configuration\getInstance(), and SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler().
SimpleSAML_IdP::addAssociation | ( | array | $association | ) |
Add an SP association.
array | $association | The SP association. |
Definition at line 219 of file IdP.php.
References $id, $session, and SimpleSAML_Session\getSessionFromRequest().
|
private |
Authenticate the user.
This function authenticates the user.
array | &$state | The authentication request state. |
SimpleSAML_Error_NoPassive | If we were asked to do passive authentication. |
Definition at line 346 of file IdP.php.
Referenced by handleAuthenticationRequest().
SimpleSAML_IdP::doLogoutRedirect | ( | $url | ) |
Log out, then redirect to a URL.
This function never returns.
string | $url | The URL the user should be returned to after logout. |
Definition at line 536 of file IdP.php.
References $state, $url, array, and handleLogoutRequest().
Referenced by sspmod_adfs_IdP_ADFS\receiveLogoutMessage().
SimpleSAML_IdP::finishLogout | ( | array & | $state | ) |
Finish the logout operation.
This function will never return.
array | &$state | The logout request state. |
Definition at line 460 of file IdP.php.
References $idp, and getByState().
|
static |
Redirect to a URL after logout.
This function never returns.
SimpleSAML_IdP | $idp | Deprecated. Will be removed. |
array | &$state | The logout state from doLogoutRedirect(). |
Definition at line 558 of file IdP.php.
References SimpleSAML\Utils\HTTP\redirectTrustedURL().
SimpleSAML_IdP::getAssociations | ( | ) |
Retrieve list of SP associations.
Definition at line 236 of file IdP.php.
References $session, and SimpleSAML_Session\getSessionFromRequest().
|
static |
Retrieve an IdP by ID.
string | $id | The identifier of the IdP. |
Definition at line 131 of file IdP.php.
|
static |
Retrieve the IdP "owning" the state.
array | &$state | The state array. |
Definition at line 152 of file IdP.php.
Referenced by finishLogout(), sspmod_saml_IdP_SAML2\handleAuthError(), SimpleSAML\IdP\TraditionalLogoutHandler\logoutNextSP(), postAuth(), sspmod_saml_Auth_Source_SP\reauthLogout(), sspmod_saml_IdP_SAML1\sendResponse(), sspmod_saml_IdP_SAML2\sendResponse(), sspmod_adfs_IdP_ADFS\sendResponse(), and SimpleSAML\IdP\IFrameLogoutHandler\startLogout().
SimpleSAML_IdP::getConfig | ( | ) |
Retrieve the configuration for this IdP.
Definition at line 165 of file IdP.php.
References $config.
Referenced by getLogoutHandler(), sspmod_adfs_IdP_ADFS\getLogoutURL(), sspmod_saml_IdP_SAML2\getLogoutURL(), handleAuthenticationRequest(), sspmod_saml_IdP_SAML2\receiveAuthnRequest(), sspmod_saml_IdP_SAML2\receiveLogoutMessage(), sspmod_saml_IdP_SAML2\sendLogoutRequest(), sspmod_adfs_IdP_ADFS\sendLogoutResponse(), and sspmod_saml_IdP_SAML2\sendLogoutResponse().
SimpleSAML_IdP::getId | ( | ) |
Retrieve the ID of this IdP.
Definition at line 118 of file IdP.php.
References $id.
Referenced by sspmod_saml_IdP_SAML2\getLogoutURL().
SimpleSAML_IdP::getLogoutHandler | ( | ) |
Find the logout handler of this IdP.
SimpleSAML_Error_Exception | If we cannot find a logout handler. |
Definition at line 434 of file IdP.php.
References $handler, and getConfig().
Referenced by handleLogoutRequest(), and handleLogoutResponse().
SimpleSAML_IdP::getSPName | ( | $assocId | ) |
Get SP name.
string | $assocId | The association identifier. |
Definition at line 178 of file IdP.php.
References $assocId, $metadata, $spEntityId, $spMetadata, array, and SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler().
SimpleSAML_IdP::handleAuthenticationRequest | ( | array & | $state | ) |
Process authentication requests.
array | &$state | The authentication request state. |
Definition at line 384 of file IdP.php.
References $id, $spEntityId, array, authenticate(), getConfig(), isAuthenticated(), postAuth(), reauthenticate(), and SimpleSAML_Auth_State\throwException().
Referenced by sspmod_adfs_IdP_ADFS\receiveAuthnRequest(), sspmod_saml_IdP_SAML1\receiveAuthnRequest(), and sspmod_saml_IdP_SAML2\receiveAuthnRequest().
SimpleSAML_IdP::handleLogoutRequest | ( | array & | $state, |
$assocId | |||
) |
Process a logout request.
This function will never return.
array | &$state | The logout request state. |
string | null | $assocId | The association we received the logout request from, or null if there was no association. |
Definition at line 479 of file IdP.php.
References $assocId, $handler, $id, $returnTo, $session, array, getLogoutHandler(), SimpleSAML\Module\getModuleURL(), SimpleSAML_Session\getSessionFromRequest(), SimpleSAML_Auth_State\saveState(), and terminateAssociation().
Referenced by doLogoutRedirect(), sspmod_adfs_IdP_ADFS\receiveLogoutMessage(), and sspmod_saml_IdP_SAML2\receiveLogoutMessage().
SimpleSAML_IdP::handleLogoutResponse | ( | $assocId, | |
$relayState, | |||
SimpleSAML_Error_Exception | $error = null |
||
) |
Process a logout response.
This function will never return.
string | $assocId | The association that is terminated. |
string | null | $relayState | The RelayState from the start of the logout. |
SimpleSAML_Error_Exception | null | $error | The error that occurred during session termination (if any). |
Definition at line 514 of file IdP.php.
References $assocId, $error, $handler, $relayState, $session, getLogoutHandler(), and SimpleSAML_Session\getSessionFromRequest().
Referenced by sspmod_saml_IdP_SAML2\receiveLogoutMessage().
SimpleSAML_IdP::isAuthenticated | ( | ) |
Is the current user authenticated?
Definition at line 262 of file IdP.php.
Referenced by handleAuthenticationRequest().
|
static |
The user is authenticated.
array | $state | The authentication request state array. |
SimpleSAML_Error_Exception | If we are not authenticated. |
Definition at line 299 of file IdP.php.
References $idp, $idpMetadata, $session, $spMetadata, array, getByState(), and SimpleSAML_Session\getSessionFromRequest().
Referenced by handleAuthenticationRequest().
|
static |
Called after authproc has run.
array | $state | The authentication request state array. |
Definition at line 273 of file IdP.php.
References $session, SimpleSAML_Session\DATA_TIMEOUT_SESSION_END, SimpleSAML_Session\getSessionFromRequest(), and time.
|
private |
Re-authenticate the user.
This function re-authenticates an user with an existing session. This gives the authentication source a chance to do additional work when re-authenticating for SSO.
Note: This function is not used when ForceAuthn=true.
array | &$state | The authentication request state. |
SimpleSAML_Error_Exception | If there is no auth source defined for this IdP. |
Definition at line 368 of file IdP.php.
Referenced by handleAuthenticationRequest().
SimpleSAML_IdP::terminateAssociation | ( | $assocId | ) |
Remove an SP association.
string | $assocId | The association id. |
Definition at line 248 of file IdP.php.
References $assocId, $session, and SimpleSAML_Session\getSessionFromRequest().
Referenced by handleLogoutRequest().
|
private |
Definition at line 46 of file IdP.php.
Referenced by getConfig().
|
private |
Definition at line 27 of file IdP.php.
Referenced by __construct(), addAssociation(), getById(), getId(), handleAuthenticationRequest(), and handleLogoutRequest().