seanabrahams / google-api-elixir-client

Elixir library for accessing Google APIs.
MIT License
12 stars 8 forks source link

Authorization #4

Open joshuataylor opened 7 years ago

joshuataylor commented 7 years ago

So Google Drive only supports OAuth2 to authorize requests - see https://developers.google.com/drive/v3/web/about-auth .

We have a couple of options:

1/ Add a dependency to a library to handle auth, as this will mean that google-api-elixir-client only interacts with Google API and doesn't handle auth (good) 2/ Write auth ourselves.

I recommend option 1, as this will reduce the initial development time, and help grow both projects.

seanabrahams commented 7 years ago

Thanks for the issues and the PR. Based on this issue it appears #1 is blocked by this? I don't currently have time to look into this but happy to review any PRs! Cheers!

elkelk commented 7 years ago

The current version allows OAuth based requests to receive a token, which offloads OAuth to the user. I'm not sure if this is ideal, but it is an approach.