google / oauth2l

oauth2l ("oauth tool") is a simple CLI for interacting with Google API authentication.
Apache License 2.0
651 stars 81 forks source link

password flow #156

Closed ghost closed 1 year ago

ghost commented 1 year ago

does this tool have a flow where it either spawns, or provides a Google URL where I can login, which then returns an authorization code to the tool?

andyrzhao commented 1 year ago

Hi there, I'm not sure what you mean by "password flow" since the tool already requires you to authenticate via OAuth flow with Google, if using client ID credentials file. Can you clarify?

ghost commented 1 year ago

OK yes I think that's what I am needing. do you have an example of what the client ID credentials file would look like? I have a client ID so I can create it manually. edit, I think this is it:

https://github.com/google/oauth2l/blob/master/python/oauth2l/testdata/fake_client_secrets.json

andyrzhao commented 1 year ago

Yes, please see https://github.com/google/oauth2l#--credentials - you can generate a client ID credential from the GCP cloud console for your project.