ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($config, $reserved) | |
Initialize consent filter. More... | |
process (&$state) | |
Process a authentication response. More... | |
Public Member Functions inherited from SimpleSAML_Auth_ProcessingFilter | |
__construct (&$config, $reserved) | |
Constructor for a processing filter. More... | |
process (&$request) | |
Process a request. More... | |
Static Public Member Functions | |
static | getHashedUserID ($userid, $source) |
Generate a unique identifier of the user. More... | |
static | getTargetedID ($userid, $source, $destination) |
Generate a unique targeted identifier. More... | |
static | getAttributeHash ($attributes, $includeValues=false) |
Generate unique identifier for attributes. More... | |
Static Private Member Functions | |
static | checkDisable ($option, $entityId) |
Helper function to check whether consent is disabled. More... | |
Private Attributes | |
$_focus = null | |
$_includeValues = false | |
$_checked = false | |
$_store = null | |
$_hiddenAttributes = array() | |
$_noconsentattributes = array() | |
$_showNoConsentAboutService = true | |
Additional Inherited Members | |
Data Fields inherited from SimpleSAML_Auth_ProcessingFilter | |
$priority = 50 | |
Priority of this filter. More... | |
Definition at line 12 of file Consent.php.
sspmod_consent_Auth_Process_Consent::__construct | ( | $config, | |
$reserved | |||
) |
Initialize consent filter.
Validates and parses the configuration.
array | $config | Configuration information. |
mixed | $reserved | For future use. |
SimpleSAML_Error_Exception | if the configuration is not valid. |
Definition at line 74 of file Consent.php.
References $config, SimpleSAML\Logger\error(), sspmod_consent_Store\parseStoreConfig(), and SimpleSAML\Logger\warning().
|
staticprivate |
Helper function to check whether consent is disabled.
mixed | $option | The consent.disable option. Either an array of array, an array or a boolean. |
string | $entityId | The entityID of the SP/IdP. |
Definition at line 166 of file Consent.php.
References $entityId.
|
static |
Generate unique identifier for attributes.
Create a hash value for the attributes that changes when attributes are added or removed. If the attribute values are included in the hash, the hash will change if the values change.
string | $attributes | The attributes. |
bool | $includeValues | Whether or not to include the attribute value in the generation of the hash. |
Definition at line 384 of file Consent.php.
References $attributes, $values, and GuzzleHttp\Psr7\hash().
Referenced by driveProcessingChain().
|
static |
Generate a unique identifier of the user.
string | $userid | The user id. |
string | $source | The source id. |
Definition at line 352 of file Consent.php.
References $source, $userid, and GuzzleHttp\Psr7\hash().
|
static |
Generate a unique targeted identifier.
string | $userid | The user id. |
string | $source | The source id. |
string | $destination | The destination id. |
Definition at line 367 of file Consent.php.
References $destination, $source, $userid, and GuzzleHttp\Psr7\hash().
Referenced by driveProcessingChain().
sspmod_consent_Auth_Process_Consent::process | ( | & | $state | ) |
Process a authentication response.
This function saves the state, and redirects the user to the page where the user can authorize the release of the attributes. If storage is used and the consent has already been given the user is passed on.
array | &$state | The state of the response. |
SimpleSAML_Error_NoPassive | if the request was passive and consent is needed. |
If the consent module is active on a bridge $state['saml:sp:IdP'] will contain an entry id for the remote IdP. If not, then the consent module is active on a local IdP and nothing needs to be done.
Definition at line 227 of file Consent.php.
References $_checked, $_focus, $_hiddenAttributes, $_noconsentattributes, $_showNoConsentAboutService, $_store, $attributes, $destination, $id, $idpEntityId, $idpmeta, $metadata, $source, $spEntityId, $state, $url, SimpleSAML\Logger\debug(), SimpleSAML\Logger\error(), SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler(), SimpleSAML\Module\getModuleURL(), SimpleSAML_Stats\log(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), SimpleSAML_Auth_State\saveState(), and SimpleSAML\Logger\stats().
|
private |
Definition at line 33 of file Consent.php.
Referenced by process().
|
private |
Definition at line 19 of file Consent.php.
Referenced by process().
|
private |
Definition at line 47 of file Consent.php.
Referenced by process().
|
private |
Definition at line 26 of file Consent.php.
|
private |
Definition at line 54 of file Consent.php.
Referenced by process().
|
private |
Definition at line 61 of file Consent.php.
Referenced by process().
|
private |
Definition at line 40 of file Consent.php.
Referenced by process().