Skip to content

WebSecurityConfigurerAdapter: Unable to use custom AuthenticationEventPublisher #7515

Closed
@fizzet

Description

@fizzet

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

Metadata

Metadata

Assignees

Labels

in: webAn issue in web modules (web, webmvc)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions