Skip to content

Commit eeef48a

Browse files
committed
minor #16733 [Security] Add InteractiveAuthenticatorInterface reference (Florian-B)
This PR was merged into the 5.4 branch. Discussion ---------- [Security] Add InteractiveAuthenticatorInterface reference Add a tip to explain how to make a custom authenticator dispatch an InteractiveLoginEvent Commits ------- 3ae47aa Add InteractiveAuthenticatorInterface reference
2 parents 448acc4 + 3ae47aa commit eeef48a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

security/custom_authenticator.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,13 @@ can define what happens in these cases:
176176
above. Use :class:`Symfony\\Component\\Security\\Core\\Exception\\CustomUserMessageAuthenticationException`
177177
if you want to set custom error messages.
178178

179+
.. tip::
180+
181+
If your login method is interactive, which means that the user actively logged into your application, you may want your authenticator to implement the
182+
:class:`Symfony\\Component\\Security\\Http\\Authenticator\\InteractiveAuthenticatorInterface`
183+
so that it dispatches an
184+
:class:`Symfony\\Component\\Security\\Http\\Event\\InteractiveLoginEvent`
185+
179186
.. _security-passport:
180187

181188
Security Passports

0 commit comments

Comments
 (0)