Merge branch '6.2.x'

This commit is contained in:
Marcus Hert Da Coregio 2024-01-03 11:30:05 -03:00
commit a190c65265
1 changed files with 2 additions and 2 deletions

View File

@ -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::
SecurityFilterChain web(HttpSecurity http) throws Exception {
http {
authorizeHttpRequests {
authorize("/endpoint", hasAuthority('USER'))
authorize("/endpoint", hasAuthority("USER"))
authorize(anyRequest, authenticated)
}
}