Vaadin OAuth2 login problem with Spring Boot 2

I have followed this wonderful tutorial to learn about Spring Boot OAuth2 login:

[https://spring.io/guides/tutorials/spring-boot-oauth2/]
(https://spring.io/guides/tutorials/spring-boot-oauth2/)

Everything was working smoothly in just couple of minutes.

I already have my working application with Spring Boot version 2.1.7 and Vaadin framework version 14.0.7 as a front-end. I tried to add the OAuth2 login to this application but the social login never works.

I tried other manuals, as these:

I have added so many dependencies that it seems even useless:

        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-config</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.security.oauth.boot</groupId>
            <artifactId>spring-security-oauth2-autoconfigure</artifactId>
            <version>2.2.2.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-oauth2-client</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-web</artifactId>
        </dependency>

I even tried to add:

@EnableOAuth2Client
@EnableOAuth2Sso

to my WebSecurityConfigurerAdapter, but nothing seems to work.

At the start-up the application tries to add some OAuth2 security filter:

I can see this class in the chain:
org.springframework.security.oauth2.client.filter.OAuth2ClientAuthenticationProcessingFilter

So the Spring Boot framework had noticed my efforts and added the filter to the chain.

When the application started, I try the social login, but nothing works. I try to go to these URLs:

But they give me HTTP Status 500 – Internal Server Error, with this message in the log:
com.vaadin.flow.router.NotFoundException: No route found for given navigation target!

Which means Vaadin framework took over and tries to operate these addresses.

Trying to looking for some kind of solution for two days already I am really desperate. Can you please give me some advice that would lead to my goal of the social login working under Vaadin?

Hi, without knowing too much about the topic myself, there is an updated OAuth tutorial for Vaadin 14 here: https://vaadin.com/learn/tutorials/google-login

Hope that helps you forward.