You are here

function samlauth_find_unique_id_by_user_id in SAML Authentication 7

Find a unique id from a username.

1 call to samlauth_find_unique_id_by_user_id()
samlauth_check_saml_user in ./samlauth.module
Validation callback for SAML users logging in through the normal login form.

File

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

Code

function samlauth_find_unique_id_by_user_id($uid) {
  return db_select('authmap', 'a')
    ->fields('a', array(
    'authname',
  ))
    ->condition('module', 'samlauth')
    ->condition('uid', $uid)
    ->execute()
    ->fetchField();
}