umap
umap copied to clipboard
Log-In via GitHub fails with 404 because the redirect URI does not match the registered callback URL
When I try to log in via Github I get a 404 with this beautiful speaking URI
http://umap.openstreetmap.fr/complete/?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdocs.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=uV2F28VIreaQnh51EpkB8Dxmj7wlyf3Z
It works if I visit umap without TLS. How about enforcing https? It is anyway what should be done.
I just got bitten by this too. I had created some maps using my github account and couldn't figure out how to login to it.
I suspect the config for github auth is broken (assumes http and fails for https).
This is the URL I get sent to:
http://umap.openstreetmap.fr/complete/?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdocs.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=igYXxodyWeEvbpiYB3pqtG0nCX6eXBIP
This is probably a misconfiguration on the github side (only supports redirects to the http url) and needs to be resolved by the service owner.
flow is:
- https://umap.openstreetmap.fr/login/github/
- https://github.com/login/oauth/authorize?client_id=XXXXXX&redirect_uri=https://umap.openstreetmap.fr/complete/github/&state=XXXX&response_type=code&scope=user:email
- http://umap.openstreetmap.fr/complete/?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdocs.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=XXXXXXX
https://github.com/omab/django-social-auth/issues/600 seems to be a very similar issue but is over 8 years old.
Stupid bug. I cannot login into my account.
Still got this problem. I can no longer loginto my account.
Edit: Switching to HTTP works, but this needs to be fixed.
We have modified the app on the Github side to handle the HTTPS. 🎉
Finally it works.
There are different issues now. I will file new issues since they are different to this one. 😥
For what I can see, we have the opposite issue: it only work when umap is https now, and does not work when it's http. Certainly time to force https everywhere, but #205 and #594 …