gsheets4s icon indicating copy to clipboard operation
gsheets4s copied to clipboard

service account support

Open alexkuang opened this issue 6 years ago • 2 comments

Hi,

Are there any plans to support access via service accounts in this library? https://developers.google.com/api-client-library/java/google-api-java-client/oauth2#service_accounts

I looked around in the code a bit and didn't see anything for this use case. If it is supported, some pointers to docs or example code would be greatly appreciated.

Thanks, Alex

alexkuang avatar Aug 19 '19 22:08 alexkuang

Hey, no it's not supported at the moment.

Since the library uses the REST API directly and not any of Google's SDK, I'm not sure it's possible.

BenFradet avatar Aug 20 '19 06:08 BenFradet

OK, thanks. The json file referenced in the google doc seems to contain a plain old private key so I wonder if their SDK just generates creds or exchanges it for another set. Might look into it if I have time.

alexkuang avatar Aug 20 '19 09:08 alexkuang