ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($idpMetadata, $spMetadata, $mode='idp') | |
Initialize an authentication processing chain for the given service provider and identity provider. More... | |
processState (&$state) | |
Process the given state. More... | |
processStatePassive (&$state) | |
Process the given state passivly. More... | |
Static Public Member Functions | |
static | resumeProcessing ($state) |
Continues processing of the state. More... | |
static | fetchProcessedState ($id) |
Retrieve a state which has finished processing. More... | |
Data Fields | |
const | FILTERS_INDEX = 'SimpleSAML_Auth_ProcessingChain.filters' |
The list of remaining filters which should be applied to the state. More... | |
const | COMPLETED_STAGE = 'SimpleSAML_Auth_ProcessingChain.completed' |
The stage we use for completed requests. More... | |
const | AUTHPARAM = 'AuthProcId' |
The request parameter we will use to pass the state identifier when we redirect after having completed processing of the state. More... | |
Static Private Member Functions | |
static | addFilters (&$target, $src) |
Sort & merge filter configuration. More... | |
static | parseFilterList ($filterSrc) |
Parse an array of authentication processing filters. More... | |
static | parseFilter ($config, $priority) |
Parse an authentication processing filter. More... | |
static | addUserID (&$state) |
Private Attributes | |
$filters | |
All authentication processing filters, in the order they should be applied. More... | |
Definition at line 13 of file ProcessingChain.php.
SimpleSAML_Auth_ProcessingChain::__construct | ( | $idpMetadata, | |
$spMetadata, | |||
$mode = 'idp' |
|||
) |
Initialize an authentication processing chain for the given service provider and identity provider.
array | $idpMetadata | The metadata for the IdP. |
array | $spMetadata | The metadata for the SP. |
Definition at line 49 of file ProcessingChain.php.
References $config, $idpMetadata, $spMetadata, SimpleSAML\Logger\debug(), and SimpleSAML_Configuration\getInstance().
|
staticprivate |
Sort & merge filter configuration.
Inserts unsorted filters into sorted filter list. This sort operation is stable.
array | &$target | Target filter list. This list must be sorted. |
array | $src | Source filters. May be unsorted. |
Definition at line 88 of file ProcessingChain.php.
|
staticprivate |
Definition at line 329 of file ProcessingChain.php.
References $state, and SimpleSAML\Logger\warning().
|
static |
Retrieve a state which has finished processing.
string | $id | The state identifier. |
Definition at line 318 of file ProcessingChain.php.
References $id, and SimpleSAML_Auth_State\loadState().
|
staticprivate |
Parse an authentication processing filter.
array | $config | Array with the authentication processing filter configuration. |
int | $priority | The priority of the current filter, (not included in the filter definition.) |
Definition at line 146 of file ProcessingChain.php.
References $config, and SimpleSAML\Module\resolveClass().
|
staticprivate |
Parse an array of authentication processing filters.
array | $filterSrc | Array with filter configuration. |
Definition at line 115 of file ProcessingChain.php.
SimpleSAML_Auth_ProcessingChain::processState | ( | & | $state | ) |
Process the given state.
This function will only return if processing completes. If processing requires showing a page to the user, we will not be able to return from this function. There are two ways this can be handled:
If an exception is thrown during processing, it should be handled by the caller of this function. If the user has redirected to a different page, the exception will be returned through the exception handler defined on the state array. See SimpleSAML_Auth_State for more information.
array | &$state | The state we are processing. |
Definition at line 181 of file ProcessingChain.php.
References $filters, and $state.
SimpleSAML_Auth_ProcessingChain::processStatePassive | ( | & | $state | ) |
Process the given state passivly.
Modules with user interaction are expected to throw an exception which are silently ignored. Exceptions of other types are passed further up the call stack.
This function will only return if processing completes.
array | &$state | The state we are processing. |
Definition at line 280 of file ProcessingChain.php.
References $filters, and $state.
|
static |
Continues processing of the state.
This function is used to resume processing by filters which for example needed to show a page to the user.
This function will never return. Exceptions thrown during processing will be passed to whatever exception handler is defined in the state array.
array | $state | The state we are processing. |
Definition at line 226 of file ProcessingChain.php.
References $id, $state, SimpleSAML_Auth_State\deleteState(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), SimpleSAML_Auth_State\saveState(), and SimpleSAML_Auth_State\throwException().
|
private |
All authentication processing filters, in the order they should be applied.
Definition at line 39 of file ProcessingChain.php.
Referenced by processState(), and processStatePassive().
const SimpleSAML_Auth_ProcessingChain::AUTHPARAM = 'AuthProcId' |
The request parameter we will use to pass the state identifier when we redirect after having completed processing of the state.
Definition at line 33 of file ProcessingChain.php.
const SimpleSAML_Auth_ProcessingChain::COMPLETED_STAGE = 'SimpleSAML_Auth_ProcessingChain.completed' |
The stage we use for completed requests.
Definition at line 26 of file ProcessingChain.php.
const SimpleSAML_Auth_ProcessingChain::FILTERS_INDEX = 'SimpleSAML_Auth_ProcessingChain.filters' |
The list of remaining filters which should be applied to the state.
Definition at line 20 of file ProcessingChain.php.