We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6b9ba64 + cb56d1c commit a190c65Copy full SHA for a190c65
docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc
@@ -188,7 +188,7 @@ Java::
188
SecurityFilterChain web(HttpSecurity http) throws Exception {
189
http
190
.authorizeHttpRequests((authorize) -> authorize
191
- .requestMatchers("/endpoint").hasAuthority('USER')
+ .requestMatchers("/endpoint").hasAuthority("USER")
192
.anyRequest().authenticated()
193
)
194
// ...
@@ -205,7 +205,7 @@ Kotlin::
205
206
http {
207
authorizeHttpRequests {
208
- authorize("/endpoint", hasAuthority('USER'))
+ authorize("/endpoint", hasAuthority("USER"))
209
authorize(anyRequest, authenticated)
210
}
211
0 commit comments