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.
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.