You are here

function cas_server_menu in CAS 7

Same name and namespace in other branches
  1. 5.4 cas_server.module \cas_server_menu()
  2. 5.3 cas_server.module \cas_server_menu()
  3. 6.3 cas_server.module \cas_server_menu()
  4. 6.2 cas_server.module \cas_server_menu()

Implementation of hook_menu

File

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

Code

function cas_server_menu() {
  $items = array();
  $items['cas/login'] = array(
    'page callback' => 'cas_server_login',
    'title' => 'CAS Login',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['cas/validate'] = array(
    'page callback' => 'cas_server_validate',
    'title' => 'CAS Validate',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['cas/serviceValidate'] = array(
    'page callback' => 'cas_server_service_validate',
    'title' => 'CAS Service Validate',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['cas/proxyValidate'] = array(
    'page callback' => 'cas_server_service_validate',
    'title' => 'CAS Proxy Ticket Validate',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['cas/logout'] = array(
    'page callback' => 'cas_server_logout',
    'title' => 'CAS Logout',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/people/cas_server'] = array(
    'title' => 'CAS Server',
    'description' => 'Configure central authentication services server',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'cas_server_admin_settings',
    ),
    'access arguments' => array(
      'administer cas server',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'cas_server.admin.inc',
  );
  $items['admin/config/people/cas_server/settings'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  return $items;
}