You are here

function saml_sp_drupal_login__get_authmap in SAML Service Provider 7

Lookup the user ID using the authmap table.

1 call to saml_sp_drupal_login__get_authmap()
saml_sp_drupal_login__saml_authenticate in modules/saml_sp_drupal_login/saml_sp_drupal_login.module
SAML authentication callback.

File

modules/saml_sp_drupal_login/saml_sp_drupal_login.module, line 135
SAML Drupal Login

Code

function saml_sp_drupal_login__get_authmap($email) {
  return db_query("SELECT uid FROM {authmap} WHERE authname = :authname AND module = :module", array(
    ':authname' => $email,
    ':module' => 'saml_sp_drupal_login',
  ))
    ->fetchField();
}