Closed GoogleCodeExporter closed 8 years ago
The latitude sample uses OAuth 1.0 instead of 2.0 and contains no call to
oauth2client.tools.run(), so I'm not sure what this bug report is about.
Original comment by jcgregorio@google.com
on 17 Apr 2012 at 12:55
latitude.py actually is not calling oauth2client.tools.run() but
apiclient.oauth.run() is the same implementation as oauth2client.tools.run()
and the same problems happen when we try to implement command-line application
with oauth2client module.
Could you try moderator.py?
Original comment by yoshif...@google.com
on 17 Apr 2012 at 1:48
Here is what I get when I run moderator.py both with and w/o that flag:
$ python moderator.py
Your browser has been opened to visit:
https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fmoderator&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&response_type=code&client_id=4...7.apps.googleusercontent.com&access_type=offline
If your browser is on a different machine then exit and re-run this
application with the command-line parameter
--noauth_local_webserver
Created new window in existing browser session.
And also:
$ python moderator.py --noauth_local_webserver
Go to the following link in your browser:
https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fmoderator&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&client_id=4...7.apps.googleusercontent.com&access_type=offline
Enter verification code:
Original comment by jcgregorio@google.com
on 17 Apr 2012 at 2:02
You may be running into either a firewall issue blocking ports 8080 and 9090,
or there are running programs that already using those ports. The tools.run()
call will silently fall back to using --noauth_local_webserver if neither port
can be accessed.
CL out for review http://codereview.appspot.com/6307054/
Now a message will be printed to explain the reason for falling back.
Original comment by jcgregorio@google.com
on 7 Jun 2012 at 5:55
This issue was closed by revision 8f671399d2d0.
Original comment by jcgregorio@google.com
on 7 Jun 2012 at 6:31
Original issue reported on code.google.com by
yoshif...@google.com
on 17 Apr 2012 at 9:31