1
0
mirror of synced 2026-05-22 21:33:16 +00:00

Add shouldFilterAllDispatcherTypes to Kotlin DSL

Closes gh-11153
This commit is contained in:
Marcus Da Coregio
2022-04-25 14:20:56 -03:00
committed by Marcus Hert Da Coregio
parent 8e34cedcfe
commit e94adedb94
3 changed files with 174 additions and 0 deletions
@@ -190,4 +190,18 @@ SecurityFilterChain web(HttpSecurity http) throws Exception {
return http.build();
}
----
.Kotlin
[source,kotlin,role="secondary"]
----
@Bean
open fun web(http: HttpSecurity): SecurityFilterChain {
http {
authorizeHttpRequests {
shouldFilterAllDispatcherTypes = true
authorize(anyRequest, authenticated)
}
}
return http.build()
}
----
====