spring-social / spring-social-google

Spring Social extension with connection support and an API binding for Google

Home Page:https://spring-social-google.github.io/spring-social-google/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

redirect_uri_mismatch SignIn Problem

FugDev opened this issue · comments

In my Google Api Console the redirect URI is http://localhost:8080/signin/google
Although i get the following error after having selected my google user to signin:

  1. That’s an error.
    Error: redirect_uri_mismatch
    The redirect URI in the request: http://localhost:8080/signin/google did not match a registered redirect URI.

Hrm - that seems to be an issue with the project configuration in the Google side, rather than in the code. That specific error originates on their side. Can you post a screenshot? Here's a sample of how mine looks:

google oauth

I have same probleme what is the solution ?
Thanks for advanced

@mlaccetti This situation can/already be seen in a Microservices setup where the UAA is not client facing and rest calls would be from a gateway
The UAA server is where we have the implementation of Connect (localhost:9999/signin/google), but the client would need to be redirected to gateway localhost:8080/uaa/signin/google where uaa can be configured in the Zuul routes to forward the request to the UAA endpoint (localhost:9999)

What is the best way to configure the redirectUri in this case? Or is there any other solution?