callicoder / spring-boot-react-oauth2-social-login-demo

Spring Boot React OAuth2 Social Login with Google, Facebook, and Github
1.44k stars 702 forks source link

Google sign in error #78

Open ranjit-battewad opened 1 year ago

ranjit-battewad commented 1 year ago

Hi,

Thank you for the sample application. It works nice in local, but when I deploy it on server its not working here is the scenario,

  1. UI developed using reactjs
  2. API developed using Java sprint boot
  3. On server am running UI with url - https://xyz.com and back-end running as https://xyzapi.com
  4. At google developer portal redirect uri provided as - https://xyzapi.com/oauth2/callback/google
  5. Accessing API in UI as https://xyzapi.com (base url)
  6. When I click on google icon in ui its showing below error.

can you please help me to understand what is going wrong

Access blocked: Authorization Error device_id and device_name are required for private IP: http://192.168.1.10:7171/oauth2/callback/google Learn more about this error If you are a developer of React-Login, see error details. Error 400: invalid_request