Proactively refresh credentials when applying and treat a missing acces_token as invalid. (#469)
Closes #350, Supersedes #434 Note: This change reveals surprising behavior between default credentials and batches. If you allow `googleapiclient.discovery.build` to use default credentials *and* specify different credentials by providing `batch.execut()` with an explicit `http` argument, your individual requests will use the default credentials and *not* the credentials specified to the bathc http. To avoid this, tell `build` explicitly not to use default credentials by specifying `build(..., http=httplib2.Http()`. For context, see: https://github.com/google/google-api-python-client/pull/434#issuecomment-358439456
Loading
Please sign in to comment