Closed
Description
As said in comment is there support for .formLogin()?
@SecurityScheme( name = "basicAuth", type = SecuritySchemeType.HTTP, scheme = "basic" ) public class Application
@SecurityRequirement(name = "basicAuth") public class Controller
` @bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http.csrf().disable()
.authorizeRequests()
.antMatchers("/login").permitAll()
.antMatchers("/v3/api-docs/**", "/swagger-ui/**", "/swagger-ui.html").permitAll()
.anyRequest().authenticated()
.and()
.formLogin();
return http.build();
}`
If change .formLogin() to httpBasic() that will work. But how to realize it with .formLogin()?
As said in swagger.io there are only 2 schemes(Bearer and Basic)