Closed
Description
Problem
When running inside of a container the local redirect server needs to bind to a different address than the the one supplied in the redirect URI. Binding to localhost in a container will only work if it is running on the host network.
Solution
Provide an optional argument to run_local_server which allows the bind address to specified separately to host. Default to host if it is not supplied.
Alternatives
The container can run with less secure --network=host but this is not available on some container runtimes.