diff --git a/config/src/main/kotlin/org/springframework/security/config/web/server/ServerHttpSecurityDsl.kt b/config/src/main/kotlin/org/springframework/security/config/web/server/ServerHttpSecurityDsl.kt index effedad6f7..e7b485e2bb 100644 --- a/config/src/main/kotlin/org/springframework/security/config/web/server/ServerHttpSecurityDsl.kt +++ b/config/src/main/kotlin/org/springframework/security/config/web/server/ServerHttpSecurityDsl.kt @@ -35,8 +35,8 @@ import org.springframework.web.server.WebFilter * fun springWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain { * return http { * authorizeExchange { - * exchange("/public", permitAll) - * exchange(anyExchange, authenticated) + * authorize("/public", permitAll) + * authorize(anyExchange, authenticated) * } * } * } @@ -207,8 +207,8 @@ class ServerHttpSecurityDsl(private val http: ServerHttpSecurity, private val in * fun springWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain { * return http { * authorizeExchange { - * exchange("/public", permitAll) - * exchange(anyExchange, authenticated) + * authorize("/public", permitAll) + * authorize(anyExchange, authenticated) * } * } * }