Wrong redirect_uri when running in Docker #4160
Unanswered
seanmorley15
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm encountering an issue with OpenID Connect Social Auth. When running the Django runserver for testing, everything works as expected. However, when using Authentik configured for OIDC with the Django server running in my apps docker container, the redirect_uri is being stripped of the port number. For example, I’m running on localhost:8016, but the redirect_uri parameter is being set to just localhost (without the port). This issue is not OIDC specific because it happened with GitHub SSO too.
Could this issue be caused by the fact that the internal port of the Docker container is set to 80, and it might be affecting how the redirect URI is being parsed or set, the container uses built in Nginx and Gunicorn for reference.
Is there a way to pass in a custom redirect_uri in the settings of the social application model to overcome this?
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions