I would expect OAuth browser interaction to work after exposing port 8083 in containers, and then forwarding this port
docker run -ti --rm --network spotify-grabtrack_default -p 8083:8083 -v $(pwd)/app/src:/app --env-file .env spotify-grabtrack_app sh
Currently it's only working with open_browser=False in
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(scope=scope, open_browser=False)) so I have to manually copy the URL that is not accessing temporary http server created by Spotipy.
I would expect OAuth browser interaction to work after exposing port 8083 in containers, and then forwarding this port
docker run -ti --rm --network spotify-grabtrack_default -p 8083:8083 -v $(pwd)/app/src:/app --env-file .env spotify-grabtrack_app sh
Currently it's only working with
open_browser=False
insp = spotipy.Spotify(auth_manager=SpotifyOAuth(scope=scope, open_browser=False))
so I have to manually copy the URL that is not accessing temporary http server created by Spotipy.http://127.0.0.1:8080 is working for adminer.
The flow is working when run without Docker.
When I do
wget 127.0.0.1:8083/?code=sdfafadf
from within the container the local OAuth server reads the code.So it seems that
127.0.0.1:8083/
is not exposed? Doesn't take requests from the host/from the outside.