You are here

function cas_current_user in CAS 7

Same name and namespace in other branches
  1. 6.3 cas.module \cas_current_user()

Return the current CAS username.

2 calls to cas_current_user()
cas_is_external_user in ./cas.module
Determine whether the specified user is an "external" CAS user. When settings are set to use drupal as the user repository, then this function will always return true.
cas_phpcas_attributes in ./cas.module
Get the CAS attributes of the current CAS user.

File

./cas.module, line 1153
Enables users to authenticate via a Central Authentication Service (CAS) Cas will currently work if the auto registration is turned on and will create user accounts automatically.

Code

function cas_current_user() {
  return isset($_SESSION['cas_name']) ? $_SESSION['cas_name'] : FALSE;
}