Merge branch '6.1.x' into 6.2.x
This commit is contained in:
commit
cb56d1c694
|
@ -188,7 +188,7 @@ Java::
|
||||||
SecurityFilterChain web(HttpSecurity http) throws Exception {
|
SecurityFilterChain web(HttpSecurity http) throws Exception {
|
||||||
http
|
http
|
||||||
.authorizeHttpRequests((authorize) -> authorize
|
.authorizeHttpRequests((authorize) -> authorize
|
||||||
.requestMatchers("/endpoint").hasAuthority('USER')
|
.requestMatchers("/endpoint").hasAuthority("USER")
|
||||||
.anyRequest().authenticated()
|
.anyRequest().authenticated()
|
||||||
)
|
)
|
||||||
// ...
|
// ...
|
||||||
|
@ -205,7 +205,7 @@ Kotlin::
|
||||||
SecurityFilterChain web(HttpSecurity http) throws Exception {
|
SecurityFilterChain web(HttpSecurity http) throws Exception {
|
||||||
http {
|
http {
|
||||||
authorizeHttpRequests {
|
authorizeHttpRequests {
|
||||||
authorize("/endpoint", hasAuthority('USER'))
|
authorize("/endpoint", hasAuthority("USER"))
|
||||||
authorize(anyRequest, authenticated)
|
authorize(anyRequest, authenticated)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue