Skip to content

.formLogin() support #1714

Closed
Closed
@littl3rud3

Description

@littl3rud3

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();
}`

image

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions