Skip to content

WebSecurityConfigurerAdapter: Unable to use custom AuthenticationEventPublisher #7515

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

Closed
fizzet opened this issue Oct 8, 2019 · 0 comments
Closed
Assignees
Labels
in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement
Milestone

Comments

@fizzet
Copy link

fizzet commented Oct 8, 2019

Summary

When using WebSecurityConfigurerAdapter there currently seems to be no way to configure a custom event publisher.

Actual Behavior

WebSecurityConfigurerAdapter::getHttp currently always creates a new AuthenticationEventPublisher and overwrites the one set for the AuthenticationManager. There does not seem to be a way to modify that.

Expected Behavior

A custom event publisher set via configure(AuthenticationManagerBuilder) or similar should be honoured.

Version

Spring Security 5.1.6

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 8, 2019
@jzheaux jzheaux self-assigned this Jan 9, 2020
@jzheaux jzheaux added in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 9, 2020
@jzheaux jzheaux added this to the 5.3.0.RC1 milestone Jan 9, 2020
jzheaux added a commit to jzheaux/spring-security that referenced this issue Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants