| @@ 230-242 (lines=13) @@ | ||
| 227 | /** |
|
| 228 | * {@inheritdoc} |
|
| 229 | */ |
|
| 230 | public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey) |
|
| 231 | { |
|
| 232 | $event = new AuthenticationHandlerEvent( |
|
| 233 | $this->successHandler->onAuthenticationSuccess($request, $token), |
|
| 234 | $request, |
|
| 235 | null, |
|
| 236 | $token, |
|
| 237 | $providerKey |
|
| 238 | ); |
|
| 239 | $this->dispatcher->dispatch(AuthenticationHandlerEvent::SUCCESS, $event); |
|
| 240 | ||
| 241 | return $this->options['http_basic'] ? null : $event->getResponse(); |
|
| 242 | } |
|
| 243 | ||
| 244 | /** |
|
| 245 | * {@inheritdoc} |
|
| @@ 262-273 (lines=12) @@ | ||
| 259 | /** |
|
| 260 | * {@inheritdoc} |
|
| 261 | */ |
|
| 262 | public function start(Request $request, AuthenticationException $authException = null) |
|
| 263 | { |
|
| 264 | $entryPoint = $this->options['http_basic'] ? new BasicAuthenticationEntryPoint($this->getHttpBasicRealm()) : $this->entryPoint; |
|
| 265 | $event = new AuthenticationHandlerEvent( |
|
| 266 | $entryPoint->start($request, $authException), |
|
| 267 | $request, |
|
| 268 | $authException |
|
| 269 | ); |
|
| 270 | $this->dispatcher->dispatch(AuthenticationHandlerEvent::START, $event); |
|
| 271 | ||
| 272 | return $event->getResponse(); |
|
| 273 | } |
|
| 274 | ||
| 275 | /** |
|
| 276 | * {@inheritdoc} |
|