I’m currently configuring Discord login for my platform. I followed the [configuration guide](Configure Discord Login for Discourse), but I’m encountering two errors. These occur regardless of whether the user clicks signup or login (when the user is not authenticated yet).
Issue 1: HTTP vs HTTPS in Redirect URL When clicking “Login with Discord”, it opens this address:
https://discord.com/oauth2/authorize?client_id=123123&redirect_uri=http%3A%2F%2Fforum.com%2Fauth%2Fdiscord%2Fcallback&response_type=code&scope=identify+email+guilds&state=123
I noticed it’s using http
instead of https
in the redirect_uri
, which produces an error Invalid OAuth2 redirect_uri
. This can be rectified by manually changing http
to https
in the address bar and pressing Enter, which then proceeds correctly.
Issue 2: Authorization Failure After clicking “Authorize” on Discord’s permission screen, it redirects to:
https://forum.com/auth/failure?message=invalid_credentials&origin=https%3A%2F%2Fforum.com%2Fsignup&strategy=discord
Thank you in advance for any help resolving these issues!
P.S. I have double checked that i am using the right client id
and client secret
.