Code Monkey home page Code Monkey logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.