-
Notifications
You must be signed in to change notification settings - Fork 122
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
ENH: Clear authentication defaults with more fine-grained control #129
Comments
I definitely think there is room for improvement here. My ideal flow would be:
Note that Edit: Swapped items (1) and (2) so that explicitly passed credentials are always used first. Also, current behavior does default credentials before |
And if we just didn't pass any creds along - we literally did nothing there - what would happen then? How much would the |
The google-cloud-bigquery library just does (3) default credentials. |
OK, thanks. I'll ponder |
Just a small suggestion on this subject, I really enjoy how this library handles the authentication: https://github.com/nithinmurali/pygsheets It gives me more freedom than pandas-gbq right now. It let the user pass a custom credentials object and decide where to save the oauth store instead of pandas-gbq is giving me problems when running at appengine right now because it ignores that I set EDIT: I saw now that pygsheets uses oauth2client which is deprecated, but anyway, I liked how it gives more control over the authentication. |
For example, the method And the worst part is that it doesn't allow me to modify this with any parameter in the |
@caiolopes Yes, that's good feedback. I actually forgot about I should also swap (1) and (2) in my above comment. If ever supplied a google-auth Credentials object, we should always use that. |
I have fleshed out a design that accounts for this feedback at #161. Closing this issue as a duplicate of that proposal. |
We have about 220 lines of code which handles authentication - do we need that? Generally the answer to "do we need something we do a lot of" is 'Yes', but asking regardless
My prior is that we could:
That would reduced the code we needed to maintain and conform to standards - Google have very reasonable defaults, and we make it harder for those to flow through - e.g.
PANDAS_GBQ_CREDENTIALS_FILE
is non-standard, every other implementation usesGOOGLE_APPLICATION_CREDENTIALS
, so users need to have an additional setting to use this libraryThe text was updated successfully, but these errors were encountered: