Hey we are using spring security and extending the VaadinWebSecurity as following:
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeHttpRequests()
.requestMatchers(EndpointRequest.toAnyEndpoint()).permitAll()
.requestMatchers(new AntPathRequestMatcher("/icons/*.ico")).permitAll()
.and()
.securityContext(securityContext -> securityContext.requireExplicitSave(false))
.headers().frameOptions().disable()
.and()
.csrf()
.and()
.cors().disable();
if(softwareConfiguration.isDevelopmentMode()) {
http.authorizeHttpRequests()
.requestMatchers(new AntPathRequestMatcher("/h2-console/**")).permitAll()
.and()
.csrf().ignoringRequestMatchers(new AntPathRequestMatcher("/h2-console/**"));
}
super.configure(http);
setLoginView(http, LoginView.class);
}
from my understanding the super call should add the VaadinDefaultRequestCache and redirect to the page which required the autentication after login success. Somehow this doesn’t seem to work. Any ideas?