I am working on integrating google login into Phonegap application using Google OAuth. It happens that when creating a client ID for my application, I have to select โInstalled applicationโ and then the application type โOtherโ, since I create my application using Phonegap.
This gives me two redirect URIs such as " urn:ietf:wg:oauth:2.0:oob " and " http://localhost ". I am not going to go with " urn:ietf:wg:oauth:2.0:oob ", as it requires the user to copy the code and return it to the application. Another option I have is redirecting to localhost.
The problem here is, how do I redirect the URL to localhost when I'm on the iPad? I tried using different redirect URIs, but Google does not allow me to use them. It only adheres to redirecting to localhost (or adding some port numbers), which I don't have.
Does anyone have workarounds? Are there any methods to accomplish this task? I am stuck. Please help.
source share