question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to return https for redirect_uri

See original GitHub issue

Not able to return https for redirect_uri: def redirect_uri(self, request): self.load_config() return request.build_absolute_uri(reverse("django_auth_adfs:callback")) https://github.com/jobec/django-auth-adfs/blob/master/django_auth_adfs/config.py#L259

Currently manually replacing http to https def redirect_uri(self, request): self.load_config() return request.build_absolute_uri(reverse("django_auth_adfs:callback")).replace("http://", "https://")

Im assuming ive missing a setting in either django or django-auth-adfs… scratching my head.

If there isn’t an option could a fix be to add a setting?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
jobeccommented, Feb 16, 2019

You should configure nginx to set the x-forwarded-proto header, that should do the trick, along with that setting I mentioned before.

1reaction
hitenjadejacommented, Feb 16, 2019

You sir… are AWESOME!

Thank you, so much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] Redirect URI is set to http instead of https when ... - GitHub
I'm seeing the same behavior using example 1-1, deployed to a regular Azure App Service (not docker). Reply urls in azure are set...
Read more >
Spring OAuth redirect_uri not using https - Stack Overflow
I am having a similar problem, but instead of wanting to be HTTPS, the URI is always returned to me as HTTPS when...
Read more >
Redirect URI (reply URL) restrictions - Microsoft Entra
A description of the restrictions and limitations on redirect URI (reply URL) format enforced by the Microsoft identity platform.
Read more >
The 'redirect_uri' parameter must be a Login redirect URI in ...
Cause. This error is returned because the value of ${redirect_uri} used in authorize request is not registered in the Open ID client in...
Read more >
Solved: Receiving a "redirect_uri_mismatch" error when aut...
There are no work around as this is how the specification of oAuth2 was written. At this time we don't have a way...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found