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.

GitHub The redirect_uri MUST match the registered callback URL for this application.

See original GitHub issue

Hi, I am new to this library. I have tried googling for solutions but have not yet found one. I am following the tutorial from simple is better than complex.

I get the error The redirect_uri MUST match the registered callback URL for this application.

I do not see where I can find the redirect_uri to see what the mismatch is or how to overcome.

Any assistance would be greatly appreciated.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

25reactions
fsadykovcommented, Apr 27, 2020

Hello Everyone,

I finally was able to solve this problem by changing https to http from my Github app . If you are facing same problem change to http even your domain name is using https

My question is goes to @python-social-auth why https didn’t work and http is working. My domain name is using https

5reactions
tybrittencommented, Jun 10, 2020

@fsadykov, your django site defaults to http so when it builds the uri it sends to github, it makes it an http one. If you add:

SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
SECURE_SSL_REDIRECT = True

to your settings, the https will work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

error : redirect_uri_mismatch :: The redirect_uri MUST match ...
The second view is the “authorized callback URL” that you must tell GitHub about when you create the application.
Read more >
Always getting a redirect_uri_mismatch error from GitHub
I'm using the auth0/auth0-spa-js library in my React application and ... all of my redirect uri values in my app, auth0 and github...
Read more >
GitHub integration uses incorrect callback URL (if HTTP proxy ...
Invalid callback URL specified in GitHub OAuth application. ... =The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.
Read more >
Github oauth failing with wrong callback - Google Groups
Could not authenticate you from GitHub because "The redirect uri must match the registered callback url for this application.". Callback is set in...
Read more >
OAuth | GitHub API - LFE Documentation
All developers need to register their application before getting started. ... =The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.
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