Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InteractiveLoginEvent is not triggered #1876

Closed
Seb33300 opened this issue Jan 11, 2022 · 0 comments
Closed

InteractiveLoginEvent is not triggered #1876

Seb33300 opened this issue Jan 11, 2022 · 0 comments

Comments

@Seb33300
Copy link
Contributor

Q A
Bug? yes
New Feature? no
Support question? no
Version 1.3 / 1.4 / 2.x

After the user manually clicked on the oauth button to login, an InteractiveLoginEvent should be triggered but it is not.
(Only the LoginSuccessEvent is triggered)

FYI: difference between LoginSuccessEvent & InteractiveLoginEvent

When a provider authenticates the user, a security.authentication.success event is dispatched. But beware - this event may fire, for example, on every request if you have session-based authentication, if always_authenticate_before_granting is enabled or if the token is not authenticated before AccessListener is invoked.

The security.interactive_login event is triggered after a user has actively logged into your website.
You could listen on the security.interactive_login event, for example, in order to give your user a welcome flash message every time they log in.

From documentation: https://symfony.com/doc/4.4/components/security/authentication.html#security-events

gassan added a commit to gassan/HWIOAuthBundle that referenced this issue Jan 11, 2022
gassan added a commit to gassan/HWIOAuthBundle that referenced this issue Jan 11, 2022
@stloyd stloyd closed this as completed in 66b9522 Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant