Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
* @param <F> refers to the {@link AbstractAuthenticationProcessingFilter} that is being
* built
* @author Rob Winch
* @author Andrey Litvitski
* @since 3.2
* @see FormLoginConfigurer
*/
Expand Down Expand Up @@ -300,6 +301,15 @@ public void configure(B http) {
}
this.authFilter.setSecurityContextHolderStrategy(getSecurityContextHolderStrategy());
F filter = postProcess(this.authFilter);
addAuthenticationFilter(http, filter);
}

/**
* Adds the authentication filter
* @param http the {@link HttpSecurityBuilder}
* @param filter the authentication filter
*/
protected void addAuthenticationFilter(B http, F filter) {
http.addFilter(filter);
Comment on lines +306 to 313

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although this name makes perfect sense, we could consider another option if anyone has better ideas.

}

Expand Down
Loading