7 Haziran 2023 Çarşamba

SpringSecurity SecurityFilterChain.formLogin metodu

Örnek
Şöyle yaparız
@Configuration
public class SecurityConfiguration {
  @Bean
  SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws Exception {

    //CUSTOM SECURITY
    httpSecurity.csrf().disable()
    ...
    .and().formLogin()
    ...
    return httpSecurity.build();
  }
}
Örnek
Şöyle yaparız
httpSecurity
  .formLogin(AbstractHttpConfigurer::disable)
  ...

Hiç yorum yok:

Yorum Gönder