Use authorizeHttpRequests in Docs

Issue gh-8900
This commit is contained in:
Josh Cummings
2021-11-10 15:15:11 -07:00
parent f4ddb4e3f4
commit b60020a40c
14 changed files with 35 additions and 35 deletions

View File

@@ -193,7 +193,7 @@ public class MultiHttpSecurityConfig {
protected void configure(HttpSecurity http) throws Exception {
http
.antMatcher("/api/**") <3>
.authorizeRequests(authorize -> authorize
.authorizeHttpRequests(authorize -> authorize
.anyRequest().hasRole("ADMIN")
)
.httpBasic(withDefaults());
@@ -206,7 +206,7 @@ public class MultiHttpSecurityConfig {
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests(authorize -> authorize
.authorizeHttpRequests(authorize -> authorize
.anyRequest().authenticated()
)
.formLogin(withDefaults());