New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upload.py should use OAuth 2.0 #385
Comments
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
Original comment by
|
This is not fixed as Google has stopped ClientLogin but upload.py still use it. |
Indeed it is available with --oauth2 option. |
I am not able to get the --oauth2 option to work. I also specify --no_oauth2_webbrowser to upload.py, which results in a message of the following form: Go to the following link in your browser: When I do this, I get an error page with the following information: Error: invalid_client I see that there is no client_id in this request, so perhaps that's the problem, but I have created a client ID in the Google Developers Console for this project. I've also specified a product name in the Consent Screen form, as recommended by various StackOverflow discussions. Still no luck, however. Any suggestions for what I might be doing wrong? |
On 28 May 10:54, John Ousterhout wrote:
I go similar issue. The SecretKey Model was not created the first time I Cédric Krier - B2CK SPRL |
We're having the same issue. There wasn't any feedback when setting the client ID and secret, so it's unclear if it took. |
Thanks @cedk ! @johnousterhout Not sure what exactly the issue is, but it took me about 10 tries. |
client ID and secret is not showing up in the datastore. Is there a way to manually create an entity in datastore? ... what's the proper syntax to insert a row/entity in datastore ? |
Sorry, but I'm a little confused: I created a client id from the Google Developers Console (APIs & Auth -> Credentials). It looks like your suggesting doing it from a page in the code review tool itself? Any constraints on the values for the client id and secret? I've tried this a couple of times, but so far I'm not seeing anything new showing up in (Storage -> Cloud Datastore -> Query). |
On 28 May 18:55, Ryan wrote:
I think I did the same. Cédric Krier - B2CK SPRL |
Thanks for the additional information; I'm running now! I only had to submit the set-client-id-and-secret form once, and no SecretEntity key appeared in my database, but upload.py works. I used the same Client ID in both Client ID fields; I don't know whether that helped. Also, I discovered that I had to create a "Client ID for Web application" for this to work, and I had to specify a Redirect URI of https://myapp.appspot.com/oauth2callback (I initially created a "Client ID for installed application", since that's what upload.py seemed like, but that didn't work. Anyhow, I'm relieved to have this working (I'm using it for a class project due in 23 hours); thanks for all the help. |
Hi, did any of you have login: required set for the main application in your app.yaml?
I'm trying to debug an issue and want to know if anyone else has it working. Thanks, |
I am struggling with this. Basically, I can generate the auth token, but POST to |
Tried the method on http://stackoverflow.com/a/31866613/433662. Added the following to app.yaml to let /upload skip user authentication.
Then, added the @login_required decorator to guard the view.
Now i can use oauth2 with upload.py. |
@mrkschan: thank you for this!! |
Aa, thank you, this worked wonders (though not on my first few attempts, unsure what changed overnight, aside from moving the app.yaml portion to be after the upload.py url definition). Regardless, this was a lifesaver, so thank you again (as well to tarnation for originally thinking it up). EDIT: Well, looks like there was at least one more url to be added:
|
I confirm this. Thanks to everyone for the solution. 😄 |
Is there a way for users to get a permanent access token, or to refresh the access token without a browser? This is a major obstacle in our workflow. Thanks. |
For anyone looking for an efficient way to refresh the access token:
This uses elinks, which is available in the apt repo for Ubuntu and probably many other *nix. It will require one manual sign-in via |
Original issue reported on code.google.com by
mdemp...@google.com
on 2 Jun 2012 at 1:13The text was updated successfully, but these errors were encountered: