You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 24, 2026. It is now read-only.
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?
I am making a Flask API that I try to containerize.
I am using the
google_auth_oauthlibmodule to get the authorization from the user of my application to use his YouTube account.This is performed in the
_get_authenticated_first_timefunction 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_serverruns 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?