|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Inheritance diagram for sspmod_consent_Auth_Process_Consent:
Collaboration diagram for sspmod_consent_Auth_Process_Consent: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 75 of file Consent.php.
References $config, SimpleSAML\Logger\error(), and sspmod_consent_Store\parseStoreConfig().
Here is the call graph for this function:
|
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 158 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 373 of file Consent.php.
References $attributes, $names, and GuzzleHttp\Psr7\hash().
Referenced by driveProcessingChain(), and process().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Generate a unique identifier of the user.
| string | $userid | The user id. |
| string | $source | The source id. |
Definition at line 341 of file Consent.php.
References $source, $userid, and GuzzleHttp\Psr7\hash().
Referenced by process().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Generate a unique targeted identifier.
| string | $userid | The user id. |
| string | $source | The source id. |
| string | $destination | The destination id. |
Definition at line 356 of file Consent.php.
References $destination, $source, $userid, and GuzzleHttp\Psr7\hash().
Referenced by driveProcessingChain(), and process().
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Reimplemented from SimpleSAML_Auth_ProcessingFilter.
Definition at line 219 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(), getAttributeHash(), getHashedUserID(), SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler(), SimpleSAML\Module\getModuleURL(), getTargetedID(), SimpleSAML_Stats\log(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), SimpleSAML_Auth_State\saveState(), and SimpleSAML\Logger\stats().
Here is the call graph for this function:
|
private |
Definition at line 34 of file Consent.php.
Referenced by process().
|
private |
Definition at line 20 of file Consent.php.
Referenced by process().
|
private |
Definition at line 48 of file Consent.php.
Referenced by process().
|
private |
Definition at line 27 of file Consent.php.
|
private |
Definition at line 55 of file Consent.php.
Referenced by process().
|
private |
Definition at line 62 of file Consent.php.
Referenced by process().
|
private |
Definition at line 41 of file Consent.php.
Referenced by process().