W3cubDocs

/Symfony 4.1

SessionAuthenticationStrategyInterface

interface SessionAuthenticationStrategyInterface

SessionAuthenticationStrategyInterface.

Implementation are responsible for updating the session after an interactive authentication attempt was successful.

Methods

onAuthentication(Request $request, TokenInterface $token)

This performs any necessary changes to the session.

Details

onAuthentication(Request $request, TokenInterface $token)

This performs any necessary changes to the session.

This method should be called before the TokenStorage is populated with a Token. It should be used by authentication listeners when a session is used.

Parameters

Request $request
TokenInterface $token