Auth0 with Spring Boot

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:

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;

protected void configure(HttpSecurity http) throws Exception {
.logoutRequestMatcher(new AntPathRequestMatcher(LOGOUT_URL))


  • Allows access to static resources, bypassing Spring security.
    public void configure(WebSecurity web) throws Exception {

Where are you trying to call build()?

My mistake, I understand that this is done by VaadinWebSecurity and I just need to add configuration that is later built.