You are here

function cas_server_cas_server_user_attributes in CAS 7

Same name and namespace in other branches
  1. 6.3 cas_server.module \cas_server_cas_server_user_attributes()

Implements hook_cas_server_user_attributes().

Returns the user's roles.

File

./cas_server.module, line 113
Provides a protocol compliant version of CAS server 2.x

Code

function cas_server_cas_server_user_attributes($account, $service) {
  return array(
    'uid' => $account->uid,
    'mail' => $account->mail,
    'created' => $account->created,
    'timezone' => $account->timezone,
    'language' => $account->language,
    'drupal_roles' => $account->roles,
  );
}