Esempio n. 1
0
 /**
  * {@InheritDoc}
  */
 protected function attemptAuthentication(Request $request)
 {
     $username = $request->get('_username', null, true);
     $request->getSession()->set(Security::LAST_USERNAME, $username);
     $token = new ChoiceAuthToken();
     $token->setUsername($username);
     $token->setProviderKey($this->providerKey);
     return $this->authenticationManager->authenticate($token);
 }