Hi All,
I have the following problem with the Vaadin Managed Security.
I have everything configured as described in the sample application, with
@SpringBootApplication(exclude = org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration.class)
@EnableVaadinManagedSecurity
However in my applicatinon I have configuration class for my repositories:
@Configuration
@EnableAutoConfiguration
@EntityScan(basePackages = {“com.domain.entities”})
@EnableJpaRepositories(basePackages = {“com.domain.repositories”})
@EnableTransactionManagement
public class RepositoryConfiguration { }
If this configuration is enabled then whatever page I want to load ends up in unauthorized access error page.
When I comment out the configuration it takes me correctly to the login page and seems to work fine.
What should I do if I want to keep my repository configuration and enable security?