瀏覽代碼

Deprecate authorizeRequests from Kotlin DSL

Closes gh-15173
Marcus Hert Da Coregio 1 年之前
父節點
當前提交
9f44f3b79a

+ 1 - 0
config/src/main/kotlin/org/springframework/security/config/annotation/web/HttpSecurityDsl.kt

@@ -263,6 +263,7 @@ class HttpSecurityDsl(private val http: HttpSecurity, private val init: HttpSecu
      * access for requests
      * @see [AuthorizeRequestsDsl]
      */
+    @Deprecated(message = "Since 6.4. Use authorizeHttpRequests instead")
     fun authorizeRequests(authorizeRequestsConfiguration: AuthorizeRequestsDsl.() -> Unit) {
         val authorizeRequestsCustomizer = AuthorizeRequestsDsl().apply(authorizeRequestsConfiguration).get()
         this.http.authorizeRequests(authorizeRequestsCustomizer)