'authproc' => array(
array(
'consent:Consent',
'store' => 'consent:Cookie',
),
),
显示文件
Open project: simplesamlphp/simplesamlphp
Method | 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. |
Method | 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. |
return | void | This method does not return. |
public getConsents ( string $userId ) : array | ||
$userId | string | The hash identifying the user at an IdP. |
return | 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. |
return | boolean | True if the user has given consent earlier, false if not (or on error). |