Open revathykr opened 9 years ago
Hi @revathykr - sorry for the belated response. I haven't tried defining this as an installed application. I can tell you for Cordova mobile Apps select a web app.
What are you using to build your desktop app?
I am using node-webkit for my desktop app.
Hi MrSwitch, I too am struggling with the redirect_uri, but mine is for cordova/phonegap/ionic in this case.. It loads a local file with the "file" protocol, an an error of "invalid_request" with the message "invalid parameter value for redirect_uri: Missing authority: file:///android_asset/www/index.html"
Although this response is very late, I stumbled across a workable solution while perusing the Google OAuth client library. Specifically this code. The idea is to run a local server at a random port, e.g. localhost:78564. Then send http://localhost:78564 as the return URI to the login call. When the login process is over, the local server will get the token back and this can be then shared with hellojs. I guess this will require a custom module which communicates with the local server and hellojs.
I have to create a desktop application for listing all contact details in Google. I created google api key by following the steps below.
The result obtained is : CLIENT ID - 'XXXXXXXXXXXXXXXXX' CLIENT SECRET - 'XXXXXXXXXXXX' REDIRECT URIS - urn:ietf:wg:oauth:2.0:oob , http://localhost
What should I give as redirect_uri in 'hello.init' function ?
First I gave ' urn:ietf:wg:oauth:2.0:oob ' and got the Error : invalid_request. Next I gave ' http://localhost ' and got the Error : unsupported_response_type in the popup window.
Can someone please help me to resolve this issue?