0

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?

  • Your application needs to be granted permissions to act on your behalf. Google does not know that whatever code you are running is allowed to access your Google Drive account. What if that code was maliciously executed by a hacker on your machine? – Nathan Nov 15 '19 at 12:32
  • see https://stackoverflow.com/questions/19766912/how-do-i-authorise-an-app-web-or-installed-without-user-intervention – pinoyyid Nov 15 '19 at 22:02

1 Answers1

1

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.

ZektorH
  • 2,680
  • 1
  • 7
  • 20
  • Oauth2 is quite good for third parties. I'm not disparaging it. I just want my "own" application to do it myself without oauth2. Is this possible? – Mert Bartu Nov 16 '19 at 13:22
  • What do you mean by this? You want to do [this](https://developers.google.com/identity/protocols/OAuth2#webserver) without a library? Why? – ZektorH Nov 18 '19 at 09:30