'authproc' => array(
array(
'consent:Consent',
'store' => 'consent:Cookie',
),
),
Afficher le fichier
Open project: simplesamlphp/simplesamlphp
Méthode | Description | |
---|---|---|
deleteAllConsents ( string $userId ) : void | Delete consent. | |
deleteConsent ( string $userId, string $destinationId ) : void | Delete consent. | |
getConsents ( string $userId ) : array | Retrieve consents. | |
hasConsent ( string $userId, string $destinationId, string $attributeSet ) : boolean | Check for consent. | |
saveConsent ( string $userId, string $destinationId, string $attributeSet ) : void | Save consent. |
Méthode | Description | |
---|---|---|
_getCookieName ( string $userId, string $destinationId ) : string | Get cookie name. | |
_setConsentCookie ( string $name, string | null $value ) : void | Helper function for setting a cookie. | |
_sign ( string $data ) : string | Calculate a signature of some data. | |
_verify ( string $signedData ) : string | false | Verify signed data. |
public deleteAllConsents ( string $userId ) : void | ||
$userId | string | The hash identifying the user at an IdP. |
Résultat | void | This method does not return. |
public getConsents ( string $userId ) : array | ||
$userId | string | The hash identifying the user at an IdP. |
Résultat | array | Array of all destination ids the user has given consent for. |
public hasConsent ( string $userId, string $destinationId, string $attributeSet ) : boolean | ||
$userId | string | The hash identifying the user at an IdP. |
$destinationId | string | A string which identifies the destination. |
$attributeSet | string | A hash which identifies the attributes. |
Résultat | boolean | True if the user has given consent earlier, false if not (or on error). |