You are here

function hook_cas_phpcas_alter in CAS 7

Same name and namespace in other branches
  1. 6.3 cas.api.php \hook_cas_phpcas_alter()

Modify phpCAS authentication properties.

This is called after phpCAS has been configured with the basic server properties, but before phpCAS::forceAuthentication() is called.

Users will generally not need to implement this hook, as most phpCAS configuration options are already provided in the CAS module UI.

There are no parameters, instead the module should directly call the functions in the phpCAS namespace.

1 function implements hook_cas_phpcas_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

cas_test_cas_phpcas_alter in tests/cas_test.module
1 invocation of hook_cas_phpcas_alter()
cas_phpcas_init in ./cas.module
Initialize phpCAS.

File

./cas.api.php, line 116
Documentation for CAS API.

Code

function hook_cas_phpcas_alter() {

  // Set a custom server login URL.
  phpCAS::setServerLoginURL('https://login.example.com/cas/login');
}