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

Creating a Google Developer Console project should not be a prerequisite for using this software. #18

Open
psteiger opened this issue May 12, 2020 · 2 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@psteiger
Copy link
Contributor

We need to investigate and enumerate possible ways to remove this prerequisite, which is a real deal-breaker for using this script.

@psteiger psteiger added the help wanted Extra attention is needed label May 12, 2020
@psteiger
Copy link
Contributor Author

From https://cloud.google.com/bigquery/docs/authentication/end-user-installed:

"Save the credentials file to client_secrets.json. This file must be distributed with your app."

Let's double check the safety and go on with distributing the authentication json.

@psteiger psteiger added the question Further information is requested label May 15, 2020
@psteiger
Copy link
Contributor Author

psteiger commented May 9, 2021

See https://googleapis.github.io/google-api-python-client/docs/oauth-installed.html

This flow is similar to the one shown in the Using OAuth 2.0 for Web Server Applications, but with three differences:

  • When creating a client ID, you specify that your application is an Installed application. This results in a different value for the redirect_uri parameter.
  • The client ID and client secret obtained from the API Console are embedded in the source code of your application. In this context, the client secret is obviously not treated as a secret.
  • The authorization code can be returned to your application in the title bar of the browser or in the query string of an HTTP request to the local host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant