Open HiralBarot1512 opened 1 year ago
@HiralBarot1512 can you include the full error and the logs? It's also a good idea for you to debug the application and library to see why exactly that URI mismatch error is being raised. You can do so by dropping a breakpoint()
, using an IDE's debugger or putting a number of print statements in the code.
I followed this tutorial https://django-auth-adfs.readthedocs.io/en/latest/azure_ad_config_guide.html#step-3-register-and-configure-an-azure-ad-frontend-application and everything is set as per that, but when i try to login i am seeing URI mismatch error and cause for that is i can see http instead of https in redirect_uri. I also tried passing AUTH_ADFS = { .... 'REDIR_URI': 'https://abc.com' ... } but its not working even after this too. I tried setting up all these one by one but no luck. SECURE_SSL_REDIRECT = True SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') USE_X_FORWARDED_HOST = True USE_X_FORWARDED_PORT = True Any help would be appreciated.
Thanks
Upvote & Fund