Skip to content

Allow a separate bind address for the the local redirect server #201

Closed
@gilesknap

Description

@gilesknap

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚨This issue needs some love.triage meI really want to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions