FastAPI Webapp via Dockerized Fief #306
-
I'm trying to get the FastAPI WebApp authentication working via a localized Fief authentication server. I am able to get this working when using the Fief Cloud, but fails when I try to use a self-hosted Fief server. Ultimately, I think there is something wrong with the relatively new python client, 0.18.2, but I haven't set it up to debug exactly what is wrong yet. But, I think it ends up trying to call my FastAPI server (running at localhost:8080) rather than the Fief Server (running at localhost:8000) when trying to call the When I enter the following URL in the browser: Here's the log messages I see on my FastAPI server (the Fief authentication server, of course, sees no HTTP traffic since it is being sent here):
Here's my configuration:
Dockerfile: (fastapi with webapp)
docker-compose.yml:
app/app.py
app/requirements.txt
Dockerfile
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hail, @ScottFred 👋 I've noticed you shared secret values: For your security, I've taken the liberty to replace them with dummy values. |
Beta Was this translation helpful? Give feedback.
-
Yes, this is related to fief-dev/fief-python#14. Since it's (wrongly) returning relative URL for I'll issue the fix ASAP. |
Beta Was this translation helpful? Give feedback.
Should be fixed in https://github.com/fief-dev/fief-python/releases/tag/v0.18.3