public function CasUserManager::setCasUsernameForAccount in CAS 2.x
Same name and namespace in other branches
- 8 src/Service/CasUserManager.php \Drupal\cas\Service\CasUserManager::setCasUsernameForAccount()
Save an association of the passed in Drupal user account and CAS username.
Parameters
\Drupal\user\UserInterface $account: The user account entity.
string $cas_username: The CAS username.
File
- src/
Service/ CasUserManager.php, line 297
Class
- CasUserManager
- Provides the 'cas.user_manager' service default implementation.
Namespace
Drupal\cas\ServiceCode
public function setCasUsernameForAccount(UserInterface $account, $cas_username) {
$this->authmap
->save($account, $this->provider, $cas_username);
}