class DefaultAuthenticationSuccessHandler implements AuthenticationSuccessHandlerInterface

Class with the default authentication success handling logic.

Traits

Trait to get (and set) the URL the user last visited before being forced to authenticate.

Properties

protected $httpUtils
protected $options
protected $providerKey
protected $defaultOptions

Methods

__construct(HttpUtils $httpUtils, array $options = [])

No description

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)

No description

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.

Details

at line 46
__construct(HttpUtils $httpUtils, array $options = [])

Parameters

HttpUtils $httpUtils
array $options Options for processing a successful authentication attempt

at line 55
Response onAuthenticationSuccess(Request $request, TokenInterface $token)

This is called when an interactive authentication attempt succeeds. This is called by authentication listeners inheriting from AbstractAuthenticationListener.

Parameters

Request $request
TokenInterface $token

Return Value

Response never null

at line 65
array getOptions()

Gets the options.

Return Value

array An array of options

at line 70
setOptions(array $options)

Parameters

array $options

at line 80
string getProviderKey()

Get the provider key.

Return Value

string

at line 90
setProviderKey(string $providerKey)

Set the provider key.

Parameters

string $providerKey

at line 100
protected string determineTargetUrl(Request $request)

Builds the target URL according to the defined options.

Parameters

Request $request

Return Value

string