OAuth issue with github
Hi,
I've authenticated with mk-fg github account previously (6+ months ago), and now tried to do it again, but it didn't work - clicking github button just redirects me to the main wiki page without signing in - i.e. there's still green "Sign In" button on the top-right of the page instead of account info.
Tried clearing the cookies and disabling all the usual adblock/anti-social extensions, but that didn't make any difference (and these usually don't affect this process).
On github.com/settings/applications Fernir Project was under "Authorized OAuth Apps", so tried revoking access for it there to force re-authorization, in addition to flushing the cookies, but that didn't work either with same exact result - redirect back to main wiki page without being authorized and no apparent error messages on the page.
Looking at "Network" tab in webdev console, this redirect sequence seem to be happening on Sign-In with github:
- 302 POST https://fenrirproject.org/users/auth/github
- 302 GET https://github.com/login/oauth/authorize?client_id=adbddb547b30185eac06&redirect_uri=https%3A%2F%2Ffenrirproject.org%2Fusers%2Fauth%2Fgithub%2Fcallback&response_type=code&scope=user%3Aemail&state=696fab8b9c2bf4553e6740a51a20eead343f34b55e320f95
- 302 GET https://www.fenrirproject.org/?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fv3%2Foauth%2F%23redirect-uri-mismatch&state=696fab8b9c2bf4553e6740a51a20eead343f34b55e320f95
- 302 GET https://fenrirproject.org/?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fv3%2Foauth%2F%23redirect-uri-mismatch&state=696fab8b9c2bf4553e6740a51a20eead343f34b55e320f95
- 302 GET https://www.fenrirproject.org/Fenrir/Fenrir_Project/wikis/home
- 200 GET https://fenrirproject.org/Fenrir/Fenrir_Project/wikis/home
Also, when trying to link this account (registered here) to github under account settings, that operation redirects to the url with a similar error:
So it looks like there's some problem with github oauth inter-operation.
Not critical for me, as I was able to register account, though while doing that, both previous github-linked name (mk-fg) and email address were rejected, which can be an issue if there's no backup email address suitable for gitlab registrations (which is not as easy as it sounds - thing rejected first three email addresses I provided as "mismatch" for some reason).