I'm starting a web project (in flask) in which the user needs to authenticate with his google account to later save data files in his Google Drive using PyDrive
Flask has a few libraries to authenticate but reading their doc, not all of them support OAuth2. The following 2 libraries DO support Oauth2 though.
Flask-OpenID
Flask-GoogleLogin
My question is, what is the best form to authenticate the google account? Or there is some extension for Google to make an even easier logging?
Related
I am using a simple script to transfer data to google drive. The script is managed by Cron (independently of the user). How to authenticate google api without user interaction? There used to be a oauth2client (SignedJwtAssertionCredentials) library in Python, but it is no longer supported.
I am using Google Drive Api for my Python/Flask App. This app is analyzing the picture and hiding the pictures it will analyze on google drive. The pictures already exist on my own google account.
I am using Oauth2 to access these images. But since I already have my own drive account, Oauth2 is pretty useless.
How do I get to drive outside Oauth2?
Please familiarize yourself with OAuth2 before judging the quality of the protocol.
You have to use OAuth2 with the Google Drive API in order to give permission to your application to perform actions on your behalf.
Think of OAuth2 as a "log-in" mechanism for your application into Google's products, like Drive.
Also, familiarize yourself with the Python Quickstart to understand how to do this.
I have to upload a Python project online and i'm using Google App Engine Launcher.
Using the login and password of my account on Google (the account that I used for Developers console), appear this message"Error Failed; auth error.".
What is wrong?
You can generate an app specific password here:
https://security.google.com/settings/security/apppasswords
Alternatively, you can use OAuth2 to upload your program.
See for more info:
https://cloud.google.com/appengine/docs/python/tools/uploadinganapp#Python_Password-less_login_with_OAuth2
I'm creating a simple python 2.7 application that uploads files to Google drive.
I've used PyDrive examples and they work quite well.
But in all the examples they all require the client to get their authentication secret key from their Google account and add it to the client_secrets file.
Is there a way to authenticate to Google drive in Python using Client email and password credentials?
I know this is possible using google spreadsheet (API unavailable)
I have not found a satisfactory answer/tutorial for this, but I'm sure it must be out there. My goal is to access Google Drive programmatically using my credentials. A secondary and lower-priority goal is to do this properly and that means using OAuth rather than ClientLogin.
Thus: How do you authenticate with the Google Drive API using your own credentials for your own Google Drive (without creating an application on the Google Developers Console)?
All of the documentation assumes an application, but what I'm writing is merely helper scripts in Python 2.7 for my own benefit.
"How do you authenticate with the Google Drive API using your own credentials for your own Google Drive (without creating an application on the Google Developers Console)?"
You can't. The premise of OAuth is that the user is granting access to the application, and so the application must be registered. In Google's case, that's the API/Cloud Console.
In your case, there is no need to register each application that uses your helper scripts. Just create an app called helper_scripts, embed the client Id in your script source, and then reuse those scripts in as many applications as you like.