I have a spring boot app with react. I use spring-boot-starter-oauth2-client
to authorize by Google. My application.properties file contains all necessary data:
spring.security.oauth2.client.registration.google.clientId=${GOOGLE_CLIENT_ID}
spring.security.oauth2.client.registration.google.clientSecret=${GOOGLE_CLIENT_SECRET}
spring.security.oauth2.client.registration.google.scope=email, profile
In google cloud I specified these scopes as well.
In react I redirect to ${backendUrl}/oauth2/authorization/google
to log in.
Everything has been working correctly, I could authorize just by selecting my google account, however, since Google has changed its log in UI I’m getting additional screen every time I want to authorize.
google additional auth screen
I have no idea why is it happening. I hasn’t changed anything.
I tried looking into google docs, but nothing has changed so didn’t find any answer there.
I also followed spring docs https://spring.io/guides/tutorials/spring-boot-oauth2 but as well, didn’t find any clue.