public function CasUserManager::getUidForCasUsername in CAS 2.x
Same name and namespace in other branches
- 8 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 285
Class
- CasUserManager
- Provides the 'cas.user_manager' service default implementation.
Namespace
Drupal\cas\ServiceCode
public function getUidForCasUsername($cas_username) {
return $this->authmap
->getUid($cas_username, $this->provider);
}