|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright 2002-2020 the original author or authors.
|
|
|
+ * Copyright 2002-2021 the original author or authors.
|
|
|
*
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
* you may not use this file except in compliance with the License.
|
|
@@ -269,11 +269,11 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
|
- * .openidLogin((openidLogin) ->
|
|
|
+ * .openidLogin((openidLogin) ->
|
|
|
* openidLogin
|
|
|
* .permitAll()
|
|
|
* );
|
|
@@ -302,48 +302,48 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
*
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
- * http.authorizeRequests((authorizeRequests) ->
|
|
|
+ * http.authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
|
- * .openidLogin((openidLogin) ->
|
|
|
+ * .openidLogin((openidLogin) ->
|
|
|
* openidLogin
|
|
|
* .loginPage("/login")
|
|
|
* .permitAll()
|
|
|
* .authenticationUserDetailsService(
|
|
|
* new AutoProvisioningUserDetailsService())
|
|
|
- * .attributeExchange((googleExchange) ->
|
|
|
+ * .attributeExchange((googleExchange) ->
|
|
|
* googleExchange
|
|
|
* .identifierPattern("https://www.google.com/.*")
|
|
|
- * .attribute((emailAttribute) ->
|
|
|
+ * .attribute((emailAttribute) ->
|
|
|
* emailAttribute
|
|
|
* .name("email")
|
|
|
* .type("https://axschema.org/contact/email")
|
|
|
* .required(true)
|
|
|
* )
|
|
|
- * .attribute((firstnameAttribute) ->
|
|
|
+ * .attribute((firstnameAttribute) ->
|
|
|
* firstnameAttribute
|
|
|
* .name("firstname")
|
|
|
* .type("https://axschema.org/namePerson/first")
|
|
|
* .required(true)
|
|
|
* )
|
|
|
- * .attribute((lastnameAttribute) ->
|
|
|
+ * .attribute((lastnameAttribute) ->
|
|
|
* lastnameAttribute
|
|
|
* .name("lastname")
|
|
|
* .type("https://axschema.org/namePerson/last")
|
|
|
* .required(true)
|
|
|
* )
|
|
|
* )
|
|
|
- * .attributeExchange((yahooExchange) ->
|
|
|
+ * .attributeExchange((yahooExchange) ->
|
|
|
* yahooExchange
|
|
|
* .identifierPattern(".*yahoo.com.*")
|
|
|
- * .attribute((emailAttribute) ->
|
|
|
+ * .attribute((emailAttribute) ->
|
|
|
* emailAttribute
|
|
|
* .name("email")
|
|
|
* .type("https://schema.openid.net/contact/email")
|
|
|
* .required(true)
|
|
|
* )
|
|
|
- * .attribute((fullnameAttribute) ->
|
|
|
+ * .attribute((fullnameAttribute) ->
|
|
|
* fullnameAttribute
|
|
|
* .name("fullname")
|
|
|
* .type("https://axschema.org/namePerson")
|
|
@@ -497,7 +497,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .headers((headers) ->
|
|
|
+ * .headers((headers) ->
|
|
|
* headers
|
|
|
* .contentTypeOptions(withDefaults())
|
|
|
* .xssProtection(withDefaults())
|
|
@@ -519,7 +519,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .headers((headers) -> headers.disable());
|
|
|
+ * .headers((headers) -> headers.disable());
|
|
|
* }
|
|
|
* }
|
|
|
* </pre>
|
|
@@ -538,7 +538,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .headers((headers) ->
|
|
|
+ * .headers((headers) ->
|
|
|
* headers
|
|
|
* .defaultsDisabled()
|
|
|
* .cacheControl(withDefaults())
|
|
@@ -560,9 +560,9 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .headers((headers) ->
|
|
|
+ * .headers((headers) ->
|
|
|
* headers
|
|
|
- * .frameOptions((frameOptions) -> frameOptions.disable())
|
|
|
+ * .frameOptions((frameOptions) -> frameOptions.disable())
|
|
|
* );
|
|
|
* }
|
|
|
* </pre>
|
|
@@ -686,17 +686,17 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .anyRequest().hasRole("USER")
|
|
|
* )
|
|
|
- * .formLogin((formLogin) ->
|
|
|
+ * .formLogin((formLogin) ->
|
|
|
* formLogin
|
|
|
* .permitAll()
|
|
|
* )
|
|
|
- * .sessionManagement((sessionManagement) ->
|
|
|
+ * .sessionManagement((sessionManagement) ->
|
|
|
* sessionManagement
|
|
|
- * .sessionConcurrency((sessionConcurrency) ->
|
|
|
+ * .sessionConcurrency((sessionConcurrency) ->
|
|
|
* sessionConcurrency
|
|
|
* .maximumSessions(1)
|
|
|
* .expiredUrl("/login?expired")
|
|
@@ -797,11 +797,11 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .requiresChannel((requiresChannel) ->
|
|
|
+ * .requiresChannel((requiresChannel) ->
|
|
|
* requiresChannel
|
|
|
* .anyRequest().requiresSecure()
|
|
|
* )
|
|
|
- * .portMapper((portMapper) ->
|
|
|
+ * .portMapper((portMapper) ->
|
|
|
* portMapper
|
|
|
* .http(9090).mapsTo(9443)
|
|
|
* .http(80).mapsTo(443)
|
|
@@ -910,11 +910,11 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
|
- * .jee((jee) ->
|
|
|
+ * .jee((jee) ->
|
|
|
* jee
|
|
|
* .mappableRoles("USER", "ADMIN")
|
|
|
* );
|
|
@@ -1018,7 +1018,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
@@ -1090,7 +1090,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
@@ -1197,7 +1197,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
@@ -1218,7 +1218,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/admin/**").hasRole("ADMIN")
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
@@ -1240,7 +1240,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* .antMatchers("/admin/**").hasRole("ADMIN")
|
|
@@ -1281,7 +1281,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeHttpRequests((authorizeHttpRequests) ->
|
|
|
+ * .authorizeHttpRequests((authorizeHttpRequests) ->
|
|
|
* authorizeHttpRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
@@ -1302,7 +1302,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeHttpRequests((authorizeHttpRequests) ->
|
|
|
+ * .authorizeHttpRequests((authorizeHttpRequests) ->
|
|
|
* authorizeHttpRequests
|
|
|
* .antMatchers("/admin/**").hasRole("ADMIN")
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
@@ -1324,7 +1324,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeHttpRequests((authorizeHttpRequests) ->
|
|
|
+ * .authorizeHttpRequests((authorizeHttpRequests) ->
|
|
|
* authorizeHttpRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* .antMatchers("/admin/**").hasRole("ADMIN")
|
|
@@ -1380,11 +1380,11 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
|
- * .requestCache((requestCache) ->
|
|
|
+ * .requestCache((requestCache) ->
|
|
|
* requestCache.disable()
|
|
|
* );
|
|
|
* }
|
|
@@ -1428,12 +1428,12 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
|
* // sample exception handling customization
|
|
|
- * .exceptionHandling((exceptionHandling) ->
|
|
|
+ * .exceptionHandling((exceptionHandling) ->
|
|
|
* exceptionHandling
|
|
|
* .accessDeniedPage("/errors/access-denied")
|
|
|
* );
|
|
@@ -1477,7 +1477,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .securityContext((securityContext) ->
|
|
|
+ * .securityContext((securityContext) ->
|
|
|
* securityContext
|
|
|
* .securityContextRepository(SCR)
|
|
|
* );
|
|
@@ -1519,7 +1519,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .servletApi((servletApi) ->
|
|
|
+ * .servletApi((servletApi) ->
|
|
|
* servletApi.disable()
|
|
|
* );
|
|
|
* }
|
|
@@ -1575,7 +1575,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .csrf((csrf) -> csrf.disable());
|
|
|
+ * .csrf((csrf) -> csrf.disable());
|
|
|
* }
|
|
|
* }
|
|
|
* </pre>
|
|
@@ -1651,13 +1651,13 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
|
* .formLogin(withDefaults())
|
|
|
* // sample logout customization
|
|
|
- * .logout((logout) ->
|
|
|
+ * .logout((logout) ->
|
|
|
* logout.deleteCookies("remove")
|
|
|
* .invalidateHttpSession(false)
|
|
|
* .logoutUrl("/custom-logout")
|
|
@@ -1766,13 +1766,13 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
|
* .formLogin(withDefaults())
|
|
|
* // sample anonymous customization
|
|
|
- * .anonymous((anonymous) ->
|
|
|
+ * .anonymous((anonymous) ->
|
|
|
* anonymous
|
|
|
* .authorities("ROLE_ANON")
|
|
|
* )
|
|
@@ -1792,13 +1792,13 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
|
* .formLogin(withDefaults())
|
|
|
* // sample anonymous customization
|
|
|
- * .anonymous((anonymous) ->
|
|
|
+ * .anonymous((anonymous) ->
|
|
|
* anonymous.disable()
|
|
|
* );
|
|
|
* }
|
|
@@ -1901,7 +1901,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
@@ -1920,11 +1920,11 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
|
- * .formLogin((formLogin) ->
|
|
|
+ * .formLogin((formLogin) ->
|
|
|
* formLogin
|
|
|
* .usernameParameter("username")
|
|
|
* .passwordParameter("password")
|
|
@@ -2278,7 +2278,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .anyRequest().authenticated()
|
|
|
* )
|
|
@@ -2362,7 +2362,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .anyRequest().authenticated()
|
|
|
* )
|
|
@@ -2419,13 +2419,13 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .anyRequest().authenticated()
|
|
|
* )
|
|
|
- * .oauth2ResourceServer((oauth2ResourceServer) ->
|
|
|
+ * .oauth2ResourceServer((oauth2ResourceServer) ->
|
|
|
* oauth2ResourceServer
|
|
|
- * .jwt((jwt) ->
|
|
|
+ * .jwt((jwt) ->
|
|
|
* jwt
|
|
|
* .decoder(jwtDecoder())
|
|
|
* )
|
|
@@ -2512,12 +2512,12 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
|
* .formLogin(withDefaults())
|
|
|
- * .requiresChannel((requiresChannel) ->
|
|
|
+ * .requiresChannel((requiresChannel) ->
|
|
|
* requiresChannel
|
|
|
* .anyRequest().requiresSecure()
|
|
|
* );
|
|
@@ -2586,7 +2586,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
@@ -2828,11 +2828,11 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .requestMatchers((requestMatchers) ->
|
|
|
+ * .requestMatchers((requestMatchers) ->
|
|
|
* requestMatchers
|
|
|
* .antMatchers("/api/**", "/oauth/**")
|
|
|
* )
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
@@ -2851,12 +2851,12 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .requestMatchers((requestMatchers) ->
|
|
|
+ * .requestMatchers((requestMatchers) ->
|
|
|
* requestMatchers
|
|
|
* .antMatchers("/api/**")
|
|
|
* .antMatchers("/oauth/**")
|
|
|
* )
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|
|
@@ -2875,15 +2875,15 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
|
* @Override
|
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
|
* http
|
|
|
- * .requestMatchers((requestMatchers) ->
|
|
|
+ * .requestMatchers((requestMatchers) ->
|
|
|
* requestMatchers
|
|
|
* .antMatchers("/api/**")
|
|
|
* )
|
|
|
- * .requestMatchers((requestMatchers) ->
|
|
|
+ * .requestMatchers((requestMatchers) ->
|
|
|
* requestMatchers
|
|
|
* .antMatchers("/oauth/**")
|
|
|
* )
|
|
|
- * .authorizeRequests((authorizeRequests) ->
|
|
|
+ * .authorizeRequests((authorizeRequests) ->
|
|
|
* authorizeRequests
|
|
|
* .antMatchers("/**").hasRole("USER")
|
|
|
* )
|