@Configuration
public class BasicConfiguration extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http
...
.and()
.formLogin().loginPage("/sign_in").permitAll()
.and()
.logout().permitAll();
}
}