private function attemptAuthentication(Request $request) { return $this->authenticationManager->authenticate(new UsernamePasswordToken($request->attributes->get('username'), $request->attributes->get('password'), $this->providerKey)); }