function hook_cas_server_user_attributes_alter in CAS 7
Same name and namespace in other branches
- 6.3 cas_server.api.php \hook_cas_server_user_attributes_alter()
Alter additional CAS attributes to return when a user is authenticated.
Parameters
$attributes: CAS attributes, as constructed by hook_cas_server_user_attributes().
$account: The user being logged in.
$context: An associative array containing the following key-value pairs, matching the arguments received by hook_cas_server_user_attributes():
- "service": The service URL of the site the user is logging in to.
- "ticket": The login ticket the user provided.
See also
hook_cas_server_user_attributes()
1 invocation of hook_cas_server_user_attributes_alter()
- cas_server_service_validate in ./
cas_server.module - serviceValidate method using cas 2.0 Returns data in xml
File
- ./
cas_server.api.php, line 60 - Documentation for CAS Server API.
Code
function hook_cas_server_user_attributes_alter(&$attributes, $account, $context) {
//...
}