public function CasUserManager::getUidForCasUsername in CAS 8
Same name and namespace in other branches
- 2.x src/Service/CasUserManager.php \Drupal\cas\Service\CasUserManager::getUidForCasUsername()
Return uid of account associated with passed in CAS username.
Parameters
string $cas_username: The CAS username to lookup.
Return value
bool|int The uid of the user associated with the $cas_username, FALSE otherwise.
File
- src/
Service/ CasUserManager.php, line 291
Class
- CasUserManager
- Class CasUserManager.
Namespace
Drupal\cas\ServiceCode
public function getUidForCasUsername($cas_username) {
return $this->authmap
->getUid($cas_username, $this->provider);
}