I am working on integrating google login in my Phonegap app using Google OAuth. What happens is that while creating a client ID for my app, I have to choose \"Installed Appl
You can use Rewrite Rules too.
For example, I need this callback for Google : http://local.dev/users/login-google
So I have set this URL in Google Console : http://localhost/JUMP/local.dev/users/login-google
And in apache, a simple redirect :
RewriteEngine on
RewriteRule ^JUMP/(.+)$ http://$1 [R,L]
I have had the same issue recently. I also needed to figure it out for the Twitter API (answer found here).
For google, I found 2 ways to fix the issue.
C:\xampp\htdocs\nozzle\callbacks\google.php
then your redirect to give in the request (and in the Google API Console) would be: http://localhost/nozzle/callbacks/google.php
Promblem Solved.Option 2 requires some more explaining. Here's the breakdown:
http://myapp.dev
). So I needed another solution that would allow me to still develop locally on a vhost, but also make requests to the Google API.Also, I imagine you could do the same process through a localhost address rather than a live one, but I have not tested that. But, if you do it with a live site, your whole team will be able to make the same requests from their local vhosts, as long as they are also vhosted at http://myapp.dev
Foot Note: I am using the socialmedia-oauth-login tool for accessing the Google API.