Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
* .requestMatchers("/public/**").permitAll()
* .anyRequest().hasRole("USER"))
* // Possibly more configuration ...
* .formLogin() // enable form based log in
* .formLogin((formLogin) -> formLogin // enable form based log in
* // set permitAll for all URLs associated with Form Login
* .permitAll();
* permitAll());
* return http.build();
* }
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@
* @Bean
* public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
* http
* .authorizeExchange()
* .anyExchange().authenticated()
* .and()
* .httpBasic().and()
* .formLogin();
* .authorizeExchange((authorize) -> authorize.anyExchange().authenticated())
* .httpBasic(Customizer.withDefaults())
* .formLogin(Customizer.withDefaults());
* return http.build();
* }
*
Expand Down