GuardAuthenticatorInterface::onAuthenticationSuccess()

Response|null onAuthenticationSuccess(Request $request, TokenInterface $token, string $providerKey)

Called when authentication executed and was successful!

This should return the Response sent back to the user, like a RedirectResponse to the last page they visited.

If you return null, the current request will continue, and the user will be authenticated. This makes sense, for example, with an API.

Parameters

Request $request
TokenInterface $token
string $providerKey The provider (i.e. firewall) key

Return Value

Response|null
doc_Symfony
2016-10-28 06:20:10
Comments
Leave a Comment

Please login to continue.