Skip to content

Support custom filter in Kotlin DSL #7951

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
eleftherias opened this issue Feb 6, 2020 · 0 comments
Closed

Support custom filter in Kotlin DSL #7951

eleftherias opened this issue Feb 6, 2020 · 0 comments
Assignees
Labels
in: config An issue in spring-security-config type: enhancement A general enhancement
Milestone

Comments

@eleftherias
Copy link
Contributor

eleftherias commented Feb 6, 2020

Summary

We should add support for adding a custom filter in the Kotlin DSL.
The configuration would look like

@EnableWebSecurity
open class CustomFilterConfig : WebSecurityConfigurerAdapter() {
    override fun configure(http: HttpSecurity) {
        http {
            addFilterAt(CustomFilter(), UsernamePasswordAuthenticationFilter::class.java)
        }
    }
}
@eleftherias eleftherias added in: config An issue in spring-security-config type: enhancement A general enhancement labels Feb 6, 2020
@eleftherias eleftherias self-assigned this Feb 6, 2020
@eleftherias eleftherias added this to the 5.3.0 milestone Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: config An issue in spring-security-config type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant