Comments (9)
I'm torn about this. The best thing would be if the OAuth authorization URL
could contain the username is expects to get access for, but I haven't been
able to find documentation about that. Seems like the user just has to read the
text at the bottom of the authorization page and notice whether or not the
token is for the correct account.
Original comment by [email protected]
on 16 Jun 2010 at 7:41
from googlecl.
Same thing happens when you specify one account on the command line (for
initial setup) and visit the auth page in a browser already logged in with
another account.
Original comment by [email protected]
on 17 Jun 2010 at 10:24
from googlecl.
Same thing happened to me. I think soon there will be an API that gives you the
username for a give access token. With that you don't have to prompt for a
username at all.
Original comment by [email protected]
on 18 Jun 2010 at 7:46
from googlecl.
The API that gives you the email address is already available :-)
http://sites.google.com/site/oauthgoog/Home/emaildisplayscope
For scope, please try (dot instead of hash):
https://www.googleapis.com/auth/userinfo.email
Original comment by [email protected]
on 18 Jun 2010 at 11:07
from googlecl.
I finally got around to trying this out! But it doesn't work. Trying it out
even on the OAuth playground
(http://googlecodesamples.com/oauth_playground/index.php) gives me an "invalid
token" error when I try to request data from
https://www.googleapis.com/userinfo/email
Anyone have any leads / fixes?
Original comment by [email protected]
on 28 Jun 2010 at 6:43
from googlecl.
FYI: r306 now includes the email scope, so you can play with this issue from
the trunk as well.
Original comment by [email protected]
on 28 Jun 2010 at 6:52
from googlecl.
I got OAuth Playground working for this. Two minor issues:
- the scope should be https://www.googleapis.com/auth/userinfo#email , the
endpoint is expecting this scope, even though the two should be equivalent
- at step 6 select text/plain for content-type and "Authorization header" for
"Stick oauth_* params in"
Original comment by [email protected]
on 28 Jun 2010 at 9:10
from googlecl.
I think that did it, Marius. This should be working by this afternoon. Thanks!
Original comment by [email protected]
on 29 Jun 2010 at 2:27
- Changed state: Started
from googlecl.
r310 fixes this issue. Thanks for all the help!
Original comment by [email protected]
on 29 Jun 2010 at 4:18
- Changed state: Fixed
from googlecl.
Related Issues (20)
- Google docs corruption on Mac HOT 1
- Not in google linux repositories HOT 2
- Does not install on RHEL 5.5 64-bit HOT 4
- Naming Conflict For Google Base and BaseServiceCL HOT 1
- Getting document with invalid Windows file name character creates empty file HOT 2
- Any hope for secure authentication? HOT 1
- Invalid YouTube category causes upload failure HOT 11
- google docs edit doesn't honor --folder when creating files HOT 7
- Folder structure issue HOT 5
- GET on DOCS results in 302 error for all docs HOT 1
- calendar events for 'today' are for next 24 hours and not actually the current day HOT 2
- Feature request: export ODF +PDF documents HOT 5
- add Apps for your Domain (afyd) support HOT 2
- Google Wave support HOT 1
- Easy way to run CL HOT 8
- Test Issue HOT 1
- Calendar service needs calendar discovery HOT 5
- About the date for calendar and picasa HOT 2
- Add Input/Output files capabilities HOT 5
- SetOAuthInputParameters bug HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from googlecl.