| @@ 209-221 (lines=13) @@ | ||
| 206 | /** |
|
| 207 | * {@inheritdoc} |
|
| 208 | */ |
|
| 209 | public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey) |
|
| 210 | { |
|
| 211 | $event = new AuthenticationHandlerEvent( |
|
| 212 | $this->successHandler->onAuthenticationSuccess($request, $token), |
|
| 213 | $request, |
|
| 214 | null, |
|
| 215 | $token, |
|
| 216 | $providerKey |
|
| 217 | ); |
|
| 218 | $this->dispatcher->dispatch(AuthenticationHandlerEvent::SUCCESS, $event); |
|
| 219 | ||
| 220 | return $this->options['http_basic'] ? null : $event->getResponse(); |
|
| 221 | } |
|
| 222 | ||
| 223 | /** |
|
| 224 | * {@inheritdoc} |
|
| @@ 241-252 (lines=12) @@ | ||
| 238 | /** |
|
| 239 | * {@inheritdoc} |
|
| 240 | */ |
|
| 241 | public function start(Request $request, AuthenticationException $authException = null) |
|
| 242 | { |
|
| 243 | $entryPoint = $this->options['http_basic'] ? new BasicAuthenticationEntryPoint($this->getHttpBasicRealm()) : $this->entryPoint; |
|
| 244 | $event = new AuthenticationHandlerEvent( |
|
| 245 | $entryPoint->start($request, $authException), |
|
| 246 | $request, |
|
| 247 | $authException |
|
| 248 | ); |
|
| 249 | $this->dispatcher->dispatch(AuthenticationHandlerEvent::START, $event); |
|
| 250 | ||
| 251 | return $event->getResponse(); |
|
| 252 | } |
|
| 253 | ||
| 254 | /** |
|
| 255 | * {@inheritdoc} |
|