Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth permissions request flows #35

Open
stevenle opened this issue Mar 8, 2021 · 1 comment
Open

OAuth permissions request flows #35

stevenle opened this issue Mar 8, 2021 · 1 comment
Assignees
Milestone

Comments

@stevenle
Copy link
Member

stevenle commented Mar 8, 2021

At some point, Amagaki will probably require some sort of Google Sheets (or other Google APIs) access, and I want to propose from the start that ama should request the minimum amount of permissions necessary to do a particular task.

So if a user runs what is similar to grow preprocess -p my-google-sheet for example, then a readonly access token should be requested. But if at some point in the future user runs something like grow translations upload (where translations are stored in a Google Sheet), then ama should then request readwrite access. Ama will need a permissions system to handle this case.

@jeremydw jeremydw self-assigned this Apr 27, 2021
@jeremydw
Copy link
Member

Getting this working with the following scenarios:

  • oauth2 key file
  • autoconfigured environment from gcp project
  • oauth2 flow for user credentials

Amagaki supports server middleware so planning to experiment implementing this as a server middleware plugin, so other plugins that need access to Google stuff can just fetch the auth from this plugin.

@jeremydw jeremydw added this to the 1.0.0 milestone Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants