|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Collaboration diagram for SimpleSAML_IdP: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().
Here is the call graph for this function:| SimpleSAML_IdP::addAssociation | ( | array | $association | ) |
Add an SP association.
| array | $association | The SP association. |
Definition at line 219 of file IdP.php.
References $association, $id, $session, and SimpleSAML_Session\getSessionFromRequest().
Here is the call graph for this function:
|
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.
References $state.
Referenced by handleAuthenticationRequest().
Here is the caller graph for this function:| 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, and handleLogoutRequest().
Here is the call graph for this function:| 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, $state, and getByState().
Here is the call graph for this function:
|
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 $state, and SimpleSAML\Utils\HTTP\redirectTrustedURL().
Here is the call graph for this function:| SimpleSAML_IdP::getAssociations | ( | ) |
Retrieve list of SP associations.
Definition at line 236 of file IdP.php.
References $session, and SimpleSAML_Session\getSessionFromRequest().
Here is the call graph for this function:
|
static |
Retrieve an IdP by ID.
| string | $id | The identifier of the IdP. |
Definition at line 131 of file IdP.php.
Referenced by getByState().
Here is the caller graph for this function:
|
static |
Retrieve the IdP "owning" the state.
| array | &$state | The state array. |
Definition at line 152 of file IdP.php.
References $state, and getById().
Referenced by finishLogout(), sspmod_saml_IdP_SAML2\handleAuthError(), SimpleSAML\IdP\TraditionalLogoutHandler\logoutNextSP(), postAuth(), sspmod_saml_Auth_Source_SP\reauthLogout(), sspmod_adfs_IdP_ADFS\sendResponse(), sspmod_saml_IdP_SAML1\sendResponse(), sspmod_saml_IdP_SAML2\sendResponse(), and SimpleSAML\IdP\IFrameLogoutHandler\startLogout().
Here is the call graph for this function:
Here is the caller graph for this function:| SimpleSAML_IdP::getConfig | ( | ) |
Retrieve the configuration for this IdP.
Definition at line 165 of file IdP.php.
References $config.
Referenced by getLogoutHandler(), and handleAuthenticationRequest().
Here is the caller graph for this function:| SimpleSAML_IdP::getId | ( | ) |
| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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, and SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler().
Here is the call graph for this function:| 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, $state, authenticate(), getConfig(), isAuthenticated(), postAuth(), reauthenticate(), and SimpleSAML_Auth_State\throwException().
Here is the call graph for this function:| 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, $state, getLogoutHandler(), SimpleSAML\Module\getModuleURL(), SimpleSAML_Session\getSessionFromRequest(), SimpleSAML_Auth_State\saveState(), and terminateAssociation().
Referenced by doLogoutRedirect().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| SimpleSAML_IdP::isAuthenticated | ( | ) |
Is the current user authenticated?
Definition at line 262 of file IdP.php.
Referenced by handleAuthenticationRequest().
Here is the caller graph for this function:
|
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, $state, getByState(), SimpleSAML_Session\getSessionFromRequest(), and postAuthProc().
Referenced by handleAuthenticationRequest().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Called after authproc has run.
| array | $state | The authentication request state array. |
Definition at line 273 of file IdP.php.
References $session, $state, SimpleSAML_Session\DATA_TIMEOUT_SESSION_END, and SimpleSAML_Session\getSessionFromRequest().
Referenced by postAuth().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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.
References $state.
Referenced by handleAuthenticationRequest().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().