You are here

function shib_auth_footer in Shibboleth Authentication 6.4

This footer part executes isPassive script, if the option was checked on the configuration page

File

./shib_auth.module, line 89
Drupal Shibboleth authentication module.

Code

function shib_auth_footer() {
  global $user;
  if (!shib_auth_session_valid() && shib_auth_config('is_passive') && !$user->uid) {
    $base = drupal_get_path('module', 'shib_auth');
    $my_settings = array(
      'login_url' => shib_auth_generate_login_url(),
    );
    drupal_add_js(array(
      'shib_auth' => $my_settings,
    ), 'setting');
    drupal_add_js($base . '/isPassive.js', 'module', 'footer');
    print drupal_get_js();
  }
}