You are here

function samlauth_menu in SAML Authentication 7

Implements hook_menu().

File

./samlauth.module, line 11
Provides SAML authentication capabilities.

Code

function samlauth_menu() {
  $items = array();
  $items['admin/config/people/saml'] = array(
    'title' => 'SAML Authentication',
    'description' => 'Configure SAML authentication behaviors.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'samlauth_configure_form',
    ),
    'access arguments' => array(
      'configure saml',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'samlauth.admin.inc',
  );
  $items['saml/metadata'] = array(
    'title' => 'SAML Metadata',
    'page callback' => 'samlauth_metadata',
    'access arguments' => array(
      'view sp metadata',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['saml/login'] = array(
    'title' => 'SAML Login',
    'page callback' => 'samlauth_login',
    'access callback' => 'user_is_anonymous',
    'type' => MENU_CALLBACK,
  );
  $items['saml/logout'] = array(
    'title' => 'SAML Logout',
    'page callback' => 'samlauth_logout',
    // The logout process can always be started.
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['saml/acs'] = array(
    'title' => 'SAML ACS',
    'page callback' => 'samlauth_acs',
    'access callback' => 'user_is_anonymous',
    'type' => MENU_CALLBACK,
  );
  $items['saml/sls'] = array(
    'title' => 'SAML SLS',
    'page callback' => 'samlauth_sls',
    'access callback' => 'user_is_anonymous',
    'type' => MENU_CALLBACK,
  );
  $items['saml/changepw'] = array(
    'title' => 'SAML Change Password',
    'page callback' => 'samlauth_changepw',
    'access callback' => 'user_is_logged_in',
    'type' => MENU_CALLBACK,
  );
  return $items;
}