Hi guys have just updated to the latest version of n8n (0.192.2), and the OAuth2 redirect URL seems to be broken. I have never had this issue before, and as soon as the update was completed, all flows are down.
What is the error message (if any)?
Github nodes fail
When trying to re-authenticate OAuth2, getting the following error:
{"code":0,"message":"Insufficient parameters for OAuth2 callback. Received following query parameters: {\"error\":\"redirect_uri_mismatch\",\"error_description\":\"The redirect_uri MUST match the registered callback URL for this application.\",\"error_uri\":\"https://docs.github.com/apps/managing-oauth-apps/troubleshooting-authorization-request-errors/#redirect-uri-mismatch\",\"state\":\"#removed#=\"}","hint":""}
Despite the Callback URL in Github being identical to what is required by n8n (was working as expected right before the update)
Information on your n8n setup
n8n version: 0.192.2
Database you’re using (default: SQLite): SQLite
Running n8n with the execution process [own(default), main]: own
Running n8n via [Docker, npm, n8n.cloud, desktop app]: Docker (DigitalOcean)
Hi @pb84, just a quick note to let you know that I was able to reproduce this problem and have reached out to the engineer working on this.
I could, however, only reproduce this on [email protected] which is the version introducing a new OAuth2 behaviour. Downgrading to 0.192 again solved the issue for me. Were you by any chance testing this on 0.193 @pb84? If so, you might want to downgrade again until this issue is fixed.
Thanks for confirming! From testing I hope the underlying issue won’t be too hard to fix. It seems n8n simply omits a slash in the redirect URL it sends to Github.