Hi. I’m having trouble with the redirect_uri of Discord OAuth2 systems.
No matter what I type in the &redirect_uri= query, I always get presented with this screen:
No matter what URL I use, if it has a trailing
/
at the end if it has http:// or https://, if it leads to any certain route, even if I try to encode the redirect uri to an HTML format, it still doesn’t wanna work.My current redirect uri is:
https://discordapp.com/oauth2/authorize?client_id=691011743249334333&permissions=8&scope=bot&guild_id=694885901700038656&redirect_uri=https://localhost/callback
although I have tried a million other ways before too, neither of which worked.
(Quick note: if you remove the redirect_uri query parameter, it works beautifully, but, expectedly, doesn’t redirect after success.
This isn’t the first time I need to solve this issue, and I’m having to go to desperate measures, which is writing this article.