mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-24 13:02:13 +00:00
Deprecate authorizeRequests from Kotlin DSL
Closes gh-15173
This commit is contained in:
parent
c534e5ea5b
commit
9f44f3b79a
@ -263,6 +263,7 @@ class HttpSecurityDsl(private val http: HttpSecurity, private val init: HttpSecu
|
|||||||
* access for requests
|
* access for requests
|
||||||
* @see [AuthorizeRequestsDsl]
|
* @see [AuthorizeRequestsDsl]
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(message = "Since 6.4. Use authorizeHttpRequests instead")
|
||||||
fun authorizeRequests(authorizeRequestsConfiguration: AuthorizeRequestsDsl.() -> Unit) {
|
fun authorizeRequests(authorizeRequestsConfiguration: AuthorizeRequestsDsl.() -> Unit) {
|
||||||
val authorizeRequestsCustomizer = AuthorizeRequestsDsl().apply(authorizeRequestsConfiguration).get()
|
val authorizeRequestsCustomizer = AuthorizeRequestsDsl().apply(authorizeRequestsConfiguration).get()
|
||||||
this.http.authorizeRequests(authorizeRequestsCustomizer)
|
this.http.authorizeRequests(authorizeRequestsCustomizer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user