You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XorServerCsrfTokenRequestAttributeHandler requestHandler = new XorServerCsrfTokenRequestAttributeHandler();
95
+
// ...
96
+
http
97
+
// ...
98
+
.csrf((csrf) -> csrf
99
+
.csrfTokenRequestHandler(requestHandler)
100
+
);
101
+
return http.build();
102
+
}
103
+
----
104
+
105
+
.Kotlin
106
+
[source,kotlin,role="secondary"]
107
+
----
108
+
@Bean
109
+
open fun securityWebFilterChain(http: HttpSecurity): SecurityWebFilterChain {
110
+
val requestHandler = XorServerCsrfTokenRequestAttributeHandler()
111
+
// ...
112
+
return http {
113
+
// ...
114
+
csrf {
115
+
csrfTokenRequestHandler = requestHandler
116
+
}
117
+
}
118
+
}
119
+
----
120
+
====
121
+
83
122
== Use `AuthorizationManager` for Method Security
84
123
85
124
xref:reactive/authorization/method.adoc[Method Security] has been xref:reactive/authorization/method.adoc#jc-enable-reactive-method-security-authorization-manager[improved] through {security-api-url}org/springframework/security/authorization/AuthorizationManager.html[the `AuthorizationManager` API] and direct use of Spring AOP.
0 commit comments