| @@ 222-234 (lines=13) @@ | ||
| 219 | /** |
|
| 220 | * {@inheritdoc} |
|
| 221 | */ |
|
| 222 | public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey) |
|
| 223 | { |
|
| 224 | $event = new AuthenticationHandlerEvent( |
|
| 225 | $this->successHandler->onAuthenticationSuccess($request, $token), |
|
| 226 | $request, |
|
| 227 | null, |
|
| 228 | $token, |
|
| 229 | $providerKey |
|
| 230 | ); |
|
| 231 | $this->dispatcher->dispatch(AuthenticationHandlerEvent::SUCCESS, $event); |
|
| 232 | ||
| 233 | return $this->options['http_basic'] ? null : $event->getResponse(); |
|
| 234 | } |
|
| 235 | ||
| 236 | /** |
|
| 237 | * {@inheritdoc} |
|
| @@ 254-265 (lines=12) @@ | ||
| 251 | /** |
|
| 252 | * {@inheritdoc} |
|
| 253 | */ |
|
| 254 | public function start(Request $request, AuthenticationException $authException = null) |
|
| 255 | { |
|
| 256 | $entryPoint = $this->options['http_basic'] ? new BasicAuthenticationEntryPoint($this->getHttpBasicRealm()) : $this->entryPoint; |
|
| 257 | $event = new AuthenticationHandlerEvent( |
|
| 258 | $entryPoint->start($request, $authException), |
|
| 259 | $request, |
|
| 260 | $authException |
|
| 261 | ); |
|
| 262 | $this->dispatcher->dispatch(AuthenticationHandlerEvent::START, $event); |
|
| 263 | ||
| 264 | return $event->getResponse(); |
|
| 265 | } |
|
| 266 | ||
| 267 | /** |
|
| 268 | * {@inheritdoc} |
|