0

I've hosted a cloud function on [email protected] account which uploads a file to google drive folder.

But the google drive folder is on another google count [email protected]. I've given access of that folder to [email protected]

But when I'm deploying the cloud function, in the logs its says Please visit this URL to authorize this application **link**.

I'm unable to authorize the cloud function using that link and it is redirecting to http://localhost:8000.

What am I missing here?

  • how are you generating the credentials for `[email protected]`? Is this a service account? (Note, you should use [service accounts](https://cloud.google.com/iam/docs/service-accounts) in server-based authentication requests, not a normal user account.) – Edo Akse Jul 08 '21 at 10:05
  • @EdoAkse, I've used Service account's credentials and used auth-json file of that account. – NiKhil GarakaPati Jul 08 '21 at 10:32
  • See [this excellent answer](https://stackoverflow.com/a/63164714/9267296) from a Googler – Edo Akse Jul 08 '21 at 12:01

0 Answers0