Replies: 3 comments
-
I don't know if this is the best solution, but I solved this by hardcoding a string replace of http to https in
|
Beta Was this translation helpful? Give feedback.
-
Since you serve your instance on HTTPS, I guess Fief is served behind a reverse proxy like Nginx or Traefik. In this context, you need to tell the Fief server to trust the forwarded headers coming from your proxy. Doing so, it'll generate correct URL in HTTPS. Usually, the fix just involves to set this environment variable: You can read more about it here: https://docs.fief.dev/self-hosting/deployment/ssl/ |
Beta Was this translation helpful? Give feedback.
-
You are correct! It is running under Traefik. I did set FORWARDED_ALLOW_IPS=* but still had the issue. |
Beta Was this translation helpful? Give feedback.
-
When loading
https://myapp.com/protected
it redirects tohttps://auth.my-fief-instance.com/authorize?response_type=code&client_id=XXXXXXX&redirect_uri=http%3A%2F%2Fmyapp.com/%2Fauth-callback&scope=openid
The problem is the redirect_uri is
redirect_uri=http%3A%2F%2Fmyapp.com
instead ofredirect_uri=https%3A%2F%2Fmyapp.com
I'm not sure why its generating the redirect_uri as http, but i need it to be https
Here's my FastAPI code
Beta Was this translation helpful? Give feedback.
All reactions