Hi, I just wanted to check with you if this is properly written? Did not find an example that specified the logout, but I followed the guide from Auth0 and spring boot with the exception that I could not do .build(); at the end:
`@EnableWebSecurity
@Configuration
public class SecurityConfiguration extends VaadinWebSecurity {
private static final String LOGIN_URL = “/oauth2/authorization/auth0”;
private static final String LOGOUT_URL = “/logout”;
private LogoutHandler logoutHandler;
public SecurityConfiguration(LogoutHandler logoutHandler) {
this.logoutHandler = logoutHandler;
}
@Override
protected void configure(HttpSecurity http) throws Exception {
super.configure(http);
http.oauth2Login().loginPage(LOGIN_URL).permitAll().and().logout()
.logoutRequestMatcher(new AntPathRequestMatcher(LOGOUT_URL))
.addLogoutHandler(logoutHandler);
}
/**
- Allows access to static resources, bypassing Spring security.
*/
@Override
public void configure(WebSecurity web) throws Exception {
super.configure(web);
}
}`