Closed bivald closed 3 years ago
Commit on my branch is available on https://github.com/enplore/gcs-oauth2-boto-plugin/commit/5fcf59242bc8109efe63d7fd40b16d386e86ebb3
If you are happy with it I'll open a pull request on the full python3 compatible branch (test passes on both py2 and py3, and at least the parts I use work on both)
I'm trying to port gcs-oauth2-boto-plugin to make it Python2+Python3 compatible, but ran into this issue when cloning from master:
I'm using a boto config, with a gs service key file:
gs_service_key_file = /etc/enplore/vagrant-etc/testdemo-s652y8s5.json
The issue doesn't exist when installing from pip but appeared in the January 27 commit (https://github.com/GoogleCloudPlatform/gcs-oauth2-boto-plugin/commit/53df987472d2440cd8661f2370f33f5e44aa115e)
I've spent a few hours on this, and would love some help. From what I can tell:
oauth2_helper.py
Doesn't return a oauth2_client with
cache_key_base
attribute which is later needed forCacheKey()
:However, I think there is a bunch of stuff missing on the
Oauth2GoogleClient
which is available onOAuth2ServiceAccountClient
, likeaccess_token_cache
,FetchAccessToken
etc.I'm gonna do a pull request on my own branch and link to it from here, hopefully someone other then me can tell if I re-implemented it correctly (I've tested on py2 and py3 and it works on both)