|
@@ -1363,7 +1363,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
* @Override
|
|
* @Override
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
* http
|
|
* http
|
|
- * .authorizeHttpRequests((authorizeHttpRequests) ->
|
|
|
|
|
|
+ * .authorizeHttpRequests((authorizeHttpRequests) ->
|
|
* authorizeHttpRequests
|
|
* authorizeHttpRequests
|
|
* .antMatchers("/**").hasRole("USER")
|
|
* .antMatchers("/**").hasRole("USER")
|
|
* )
|
|
* )
|
|
@@ -1384,7 +1384,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
* @Override
|
|
* @Override
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
* http
|
|
* http
|
|
- * .authorizeHttpRequests((authorizeHttpRequests) ->
|
|
|
|
|
|
+ * .authorizeHttpRequests((authorizeHttpRequests) ->
|
|
* authorizeHttpRequests
|
|
* authorizeHttpRequests
|
|
* .antMatchers("/admin/**").hasRole("ADMIN")
|
|
* .antMatchers("/admin/**").hasRole("ADMIN")
|
|
* .antMatchers("/**").hasRole("USER")
|
|
* .antMatchers("/**").hasRole("USER")
|
|
@@ -1406,7 +1406,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
* @Override
|
|
* @Override
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
* http
|
|
* http
|
|
- * .authorizeHttpRequests((authorizeHttpRequests) ->
|
|
|
|
|
|
+ * .authorizeHttpRequests((authorizeHttpRequests) ->
|
|
* authorizeHttpRequests
|
|
* authorizeHttpRequests
|
|
* .antMatchers("/**").hasRole("USER")
|
|
* .antMatchers("/**").hasRole("USER")
|
|
* .antMatchers("/admin/**").hasRole("ADMIN")
|
|
* .antMatchers("/admin/**").hasRole("ADMIN")
|
|
@@ -2249,7 +2249,7 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
* @Bean
|
|
* @Bean
|
|
* public SecurityFilterChain web(HttpSecurity http) throws Exception {
|
|
* public SecurityFilterChain web(HttpSecurity http) throws Exception {
|
|
* http
|
|
* http
|
|
- * .authorizeRequests((authorize) -> authorize
|
|
|
|
|
|
+ * .authorizeRequests((authorize) -> authorize
|
|
* .anyRequest().authenticated()
|
|
* .anyRequest().authenticated()
|
|
* )
|
|
* )
|
|
* .saml2Login(withDefaults())
|
|
* .saml2Login(withDefaults())
|
|
@@ -2839,11 +2839,11 @@ public final class HttpSecurity extends AbstractConfiguredSecurityBuilder<Defaul
|
|
* @Override
|
|
* @Override
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
* protected void configure(HttpSecurity http) throws Exception {
|
|
* http
|
|
* http
|
|
- * .authorizeRequests(authorizeRequests ->
|
|
|
|
|
|
+ * .authorizeRequests(authorizeRequests ->
|
|
* authorizeRequests
|
|
* authorizeRequests
|
|
* .antMatchers("/**").hasRole("USER")
|
|
* .antMatchers("/**").hasRole("USER")
|
|
* )
|
|
* )
|
|
- * .passwordManagement(passwordManagement ->
|
|
|
|
|
|
+ * .passwordManagement(passwordManagement ->
|
|
* passwordManagement
|
|
* passwordManagement
|
|
* .changePasswordPage("/custom-change-password-page")
|
|
* .changePasswordPage("/custom-change-password-page")
|
|
* );
|
|
* );
|