I am having problems with the redirect URI when trying to log in.
I have the application running in AWS, in an ECS container, which communicates through port 80 (HTTP) with an AWS Network Load Balancer, as you can see in this diagram:
As indicated in the documentation and in numerous comments in the repository Issues, I configured the following parameters in my application:
USE_X_FORWARDED_HOST = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
However, I still have the same problem when trying to log in:
AADSTS50011: The redirect URI 'http://app.domain.com/oauth2/callback' specified in the request does not match the redirect URIs configured for the application '11111111-1111-11111-1111-1111111111'.
Could it be because I am using a Network Load Balancer (level 4) instead of an App Load Balancer?
Could it be that I have the application deployed on a subdomain?
Is there any way to set the redirect_uri in a static way to solve this?
to add more information, I am using these versions of Django and the library:
django-auth-adfs==1.13.0
django==4.1.12
Thanks in advance
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too