iterative / PyDrive2

Google Drive API Python wrapper library. Maintained fork of PyDrive.
https://docs.iterative.ai/PyDrive2
Other
570 stars 70 forks source link

Add bind_addr parameter to LocalWebserverAuth #279

Closed aripollak closed 1 year ago

aripollak commented 1 year ago

Currently, there doesn't seem to be a way to authenticate using the LocalWebserverAuth flow while running inside a local docker container because Docker's port forwarding doesn't help with localhost-only-bound ports. This PR adds a bind_addr parameter, intended for you to pass "0.0.0.0" to it, basically providing the same functionality as described in https://github.com/googleapis/google-auth-library-python-oauthlib/pull/202.

Relatedly, the CommandlineAuth flow seems to now be completely blocked by Google, but I didn't touch that in this PR.

shcheklein commented 1 year ago

@aripollak thanks, the improvement make sense.