ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 48 of file ProcessingChain.php.
References $config, $idpMetadata, $spMetadata, array, 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 87 of file ProcessingChain.php.
References $i, $target, and array.
|
staticprivate |
Definition at line 320 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 310 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 145 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 114 of file ProcessingChain.php.
References array.
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 178 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 SimpleSAML_Error_NoPassive 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 277 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 224 of file ProcessingChain.php.
References $id, $state, array, 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 38 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 32 of file ProcessingChain.php.
const SimpleSAML_Auth_ProcessingChain::COMPLETED_STAGE = 'SimpleSAML_Auth_ProcessingChain.completed' |
The stage we use for completed requests.
Definition at line 25 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 19 of file ProcessingChain.php.