'authproc' => array(
'consent:Consent',
),
Example - save in cookie:
'authproc' => array(
array(
'consent:Consent',
'store' => 'consent:Cookie',
),
Example - save in MySQL database:
'authproc' => array(
array(
'consent:Consent',
'store' => array(
'consent:Database',
'dsn' => 'mysql:host=db.example.org;dbname=simplesaml',
'username' => 'simplesaml',
'password' => 'secretpassword',
),
),
),
Example - initial focus on yes-button:
'authproc' => array(
array('consent:Consent', 'focus' => 'yes'),
),
Afficher le fichier
Open project: simplesamlphp/simplesamlphp
Class Usage Examples
Méthode | Description | |
---|---|---|
__construct ( array $config, mixed $reserved ) | Initialize consent filter. | |
getAttributeHash ( string $attributes, boolean $includeValues = false ) : string | Generate unique identifier for attributes. | |
getHashedUserID ( string $userid, string $source ) : string | Generate a unique identifier of the user. | |
getTargetedID ( string $userid, string $source, string $destination ) : string | Generate a unique targeted identifier. | |
process ( &$state ) : void | Process a authentication response |
Méthode | Description | |
---|---|---|
checkDisable ( mixed $option, string $entityId ) : boolean | Helper function to check whether consent is disabled. |
public __construct ( array $config, mixed $reserved ) | ||
$config | array | Configuration information. |
$reserved | mixed | For future use. |
public static getAttributeHash ( string $attributes, boolean $includeValues = false ) : string | ||
$attributes | string | The attributes. |
$includeValues | boolean | Whether or not to include the attribute value in the generation of the hash. |
Résultat | string | SHA1 of the user id, source id, destination id and salt. |