prayagverma / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
1 stars 0 forks source link

"Login Error" using AuthSub with docs_v3_example.py #636

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If I select option 1, (ClientLogin), the example works fine.  But if I choose 
option 2, and load the URL in a logged in browser, and grant access, then paste 
in the token, I get "Login Error":

Please choose the authorization mechanism you want to use.
1. to use your email address and password (ClientLogin)
2. to use a web browser to visit an auth web page (AuthSub)
3. if you have registed to use OAuth
: 2
If you want to use secure mode AuthSub, please provide the
 location of your RSA private key which corresponds to the
 certificate you have uploaded for your domain. If you do not
 have an RSA key, simply press enter: 
Visit the following URL in your browser to authorize this app:
https://www.google.com/accounts/AuthSubRequest?scope=https%3A%2F%2Fdocs.google.c
om%2Ffeeds%2F+https%3A%2F%2Fspreadsheets.google.com%2Ffeeds%2F+https%3A%2F%2Fdoc
s.googleusercontent.com%2F&session=1&secure=0&hd=default&next=http%3A%2F%2Fgauth
machine.appspot.com%2Fauthsub%3Fauth_sub_scopes%3Dhttps%253A%252F%252Fdocs.googl
e.com%252Ffeeds%252F%2Bhttps%253A%252F%252Fspreadsheets.google.com%252Ffeeds%252
F%2Bhttps%253A%252F%252Fdocs.googleusercontent.com%252F
After agreeing to authorize the app, copy the token value from
 the URL. Example: "www.google.com/?token=ab12" token value is
 ab12
Please enter the token value: 1%2FctCFRf[redacted]-jNgdDAhku8TI
Login Error

Original issue reported on code.google.com by jh...@google.com on 2 Sep 2012 at 10:00