Skip to content

AuthenticationEventPublisher Lookup #7802

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

Merged
merged 2 commits into from
Jan 14, 2020
Merged

Conversation

jzheaux
Copy link
Contributor

@jzheaux jzheaux commented Jan 9, 2020

This PR addresses two main circumstances where Spring Security allows for an AuthenticationEventPublisher:

  1. When published as a bean
@Bean 
public AuthenticationEventPublisher eventPublisher(ApplicationEventPublisher eventPublisher) {
    return new DefaultAuthenticationEventPublisher(eventPublisher);
}
  1. When specified via the DSL
protected configure(AuthenticationManagerBuilder auth) {
    auth.authenticationEventPublisher(fooEventPublisher);
}

@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 labels Jan 9, 2020
@jzheaux jzheaux added this to the 5.3.0.RC1 milestone Jan 9, 2020
@jzheaux jzheaux requested a review from rwinch January 9, 2020 20:53
@jzheaux jzheaux merged commit f1f158b into spring-projects:master Jan 14, 2020
@jzheaux jzheaux deleted the gh-7515 branch January 14, 2020 19:07
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

Successfully merging this pull request may close these issues.

2 participants