PyDrive icon indicating copy to clipboard operation
PyDrive copied to clipboard

Authorize from service_account.json

Open awemulya opened this issue 6 years ago • 4 comments

I want my application to authorize using service_account.json instead of client_secrets.json or credentials. How can I acheive this. Thanks in advance.

awemulya avatar Jan 29 '20 10:01 awemulya

i need too, please

hadilo avatar Feb 18 '20 05:02 hadilo

Hey 👋 I've written a small hack to get Pydrive working with a typical service_account.json file.

https://gist.github.com/rmasters/0f71267dfbb01ded07fe4c873254d2e4

This isn't feature-complete (I haven't investigated all of the Pydrive settings) but might help you get basic Drive access working (and works for us @Lendable).

rmasters avatar May 19 '21 14:05 rmasters

@rmasters PTAL at the iterative/PyDrive2 it supports json service files for a while I think

shcheklein avatar May 19 '21 19:05 shcheklein

iterative/PyDrive2

@shcheklein Aha thanks Ivan, we'll check that out!

rmasters avatar May 21 '21 09:05 rmasters