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

Add OidcAuthenticationListener for capturing important code flow events #12145

Closed
sberyozkin opened this issue Sep 16, 2020 · 0 comments · Fixed by #12198
Closed

Add OidcAuthenticationListener for capturing important code flow events #12145

sberyozkin opened this issue Sep 16, 2020 · 0 comments · Fixed by #12198
Labels
area/oidc kind/enhancement New feature or request
Milestone

Comments

@sberyozkin
Copy link
Member

Description
There has been a request for LoginEvent be reported when the current user authenticates for the first time (or re-authenticates). The current workaround is to use SecurityIdentityAugmentor which can not detect if it is a new OIDC code flow authentication or not

Implementation ideas
We already have a new_authentication property set on RoutingContext when the code flow starts but it does not work in all the cases.
It can make sense to introduce an interface like OidcAuthenticationListener (or similarly named) which will capture not only Login but Logout, auto-reauthentication via refreshing the tokens, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/oidc kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants