Browse Source

Merge branch '6.1.x' into 6.2.x

pull/14412/head
Marcus Hert Da Coregio 2 years ago
parent
commit
cb56d1c694
  1. 4
      docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc

4
docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc

@ -188,7 +188,7 @@ Java:: @@ -188,7 +188,7 @@ Java::
SecurityFilterChain web(HttpSecurity http) throws Exception {
http
.authorizeHttpRequests((authorize) -> authorize
.requestMatchers("/endpoint").hasAuthority('USER')
.requestMatchers("/endpoint").hasAuthority("USER")
.anyRequest().authenticated()
)
// ...
@ -205,7 +205,7 @@ Kotlin:: @@ -205,7 +205,7 @@ Kotlin::
SecurityFilterChain web(HttpSecurity http) throws Exception {
http {
authorizeHttpRequests {
authorize("/endpoint", hasAuthority('USER'))
authorize("/endpoint", hasAuthority("USER"))
authorize(anyRequest, authenticated)
}
}

Loading…
Cancel
Save