rjalfa
rjalfa

Reputation: 739

Google OAuth in Java Servlet [localhost] callback

I created a Java Servlet Application which has Google OAuth Sign in using Scribe. The callback URL at Developers Console is http://localhost:8080/oauth2callback Now, if somebody accesses my application on LAN using my Local IP, they couldn't sign in since the callback was defined as localhost. Is there any workaround [Except deploying the app on the web]?

Upvotes: 0

Views: 301

Answers (1)

jwilleke
jwilleke

Reputation: 11026

No. unless the user is on your localhost, it will not work without deploying on a publically available hostname/ip address.

Upvotes: 1

Related Questions