function hook_openid_connect_claims_alter in OpenID Connect / OAuth client 7
Same name and namespace in other branches
- 8 openid_connect.api.php \hook_openid_connect_claims_alter()
- 2.x openid_connect.api.php \hook_openid_connect_claims_alter()
Alter the list of possible scopes and claims.
Parameters
array &$claims: Array of claims to be altered.
See also
openid_connect_claims
File
- ./
openid_connect.api.php, line 67 - Hooks provided by the OpenID Connect module.
Code
function hook_openid_connect_claims_alter(array &$claims) {
$claims['my_custom_claim'] = array(
'scope' => 'profile',
);
}