You are here

function _simplesamlphp_auth_destroy_drupal_session in simpleSAMLphp Authentication 7.3

Same name and namespace in other branches
  1. 6.3 simplesamlphp_auth.module \_simplesamlphp_auth_destroy_drupal_session()
  2. 6.2 simplesamlphp_auth.module \_simplesamlphp_auth_destroy_drupal_session()
  3. 7 simplesamlphp_auth.module \_simplesamlphp_auth_destroy_drupal_session()
  4. 7.2 simplesamlphp_auth.module \_simplesamlphp_auth_destroy_drupal_session()

Logs out a user who has an active Drupal session but not with simpleSAML.

1 call to _simplesamlphp_auth_destroy_drupal_session()
simplesaml_auth_moderate_local_login in ./simplesamlphp_auth.inc
Denies non-SAML-authenticated access to the site for configured Drupal roles.

File

./simplesamlphp_auth.module, line 699
simpleSAMLphp authentication module for Drupal.

Code

function _simplesamlphp_auth_destroy_drupal_session() {
  module_load_include('pages.inc', 'user');
  user_logout();
}