/**
  * {@inheritdoc}
  */
 public function createAuthenticatedToken(UserInterface $user, $providerKey)
 {
     $token = parent::createAuthenticatedToken($user, $providerKey);
     $token->setAttribute('ldap_domain', $this->domain);
     return $token;
 }
예제 #2
0
 /**
  * Create an authenticated token for the given user. You can skip this
  * method by extending the AbstractGuardAuthenticator class from your
  * authenticator.
  */
 public function createAuthenticatedToken(UserInterface $user, $providerKey)
 {
     return parent::createAuthenticatedToken($user, $providerKey);
 }