class DefaultAuthenticationSuccessHandler implements AuthenticationSuccessHandlerInterface
Class with the default authentication success handling logic.
| TargetPathTrait | Trait to get (and set) the URL the user last visited before being forced to authenticate. |
| protected | $httpUtils | ||
| protected | $options | ||
| protected | $providerKey | ||
| protected | $defaultOptions |
| __construct(HttpUtils $httpUtils, array $options = array()) | ||
| Response | onAuthenticationSuccess(Request $request, TokenInterface $token) This is called when an interactive authentication attempt succeeds. This is called by authentication listeners inheriting from AbstractAuthenticationListener. | |
| array | getOptions() Gets the options. | |
| setOptions(array $options) | ||
| string | getProviderKey() Get the provider key. | |
| setProviderKey(string $providerKey) Set the provider key. | ||
| string | determineTargetUrl(Request $request) Builds the target URL according to the defined options. |
| HttpUtils | $httpUtils | |
| array | $options | Options for processing a successful authentication attempt |
This is called when an interactive authentication attempt succeeds. This is called by authentication listeners inheriting from AbstractAuthenticationListener.
| Request | $request | |
| TokenInterface | $token |
| Response | never null |
Gets the options.
| array | An array of options |
| array | $options |
Get the provider key.
| string |
Set the provider key.
| string | $providerKey |
Builds the target URL according to the defined options.
| Request | $request |
| string |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationSuccessHandler.html