public function TokenAuthUser::getAccountName in Simple OAuth (OAuth2) & OpenID Connect 8
Same name and namespace in other branches
- 8.4 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getAccountName()
- 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getAccountName()
- 8.3 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getAccountName()
- 5.x src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getAccountName()
Returns the unaltered login name of this account.
Return value
string An unsanitized plain-text string with the name of this account that is used to log in. Only display this name to admins and to the user who owns this account, and only in the context of the name used to login. For any other display purposes, use \Drupal\Core\Session\AccountInterface::getDisplayName() instead.
Overrides AccountInterface::getAccountName
File
- src/
Authentication/ TokenAuthUser.php, line 115
Class
- TokenAuthUser
- Class TokenAuthUser.
Namespace
Drupal\simple_oauth\AuthenticationCode
public function getAccountName() {
return $this->subject
->getAccountName();
}