Skip to content

Can't run flow.run_local_server from a Docker container #87

Closed
@ghost

Description

I am making a Flask API that I try to containerize.

I am using the google_auth_oauthlib module to get the authorization from the user of my application to use his YouTube account.

This is performed in the _get_authenticated_first_time function of this python file.
It works fine on my local server.

However, when I am tying to containerize my application with Docker, the function flow.run_local_server runs forever without redirecting me anywhere.

I tried to pass as port argument of the flow.run_local_server() the value 8080 and map my local port 8080 to the port 8080 of the container in my docker-compose.yaml file but it doesn't work either.

So my question is simple:
Do you know how to make a set up that allows to run the authentication flow inside a Docker container?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionRequest for information or clarification. Not an issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions