Closed r4mbo7 closed 5 years ago
From the discord OAuth2 URL Generator
section, url should be
https://discordapp.com/api/oauth2/authorize?client_id=476479159380475916&redirect_uri=https%3A%2F%2Fstaging-io.scalingo.io%2Fusers%2Fauth%2Fdiscord%2Fcallback&response_type=code&scope=email
But from logs above, request if performed to
https://discordapp.com/oauth2/authorize?client_id=476479159380475916&redirect_uri=https%3A%2F%2Fstaging-io.scalingo.io%2Fusers%2Fauth%2Fdiscord%2Fcallback&response_type=code&scope=email&state=bd3696ed5b205b715b08914772b4b9bc3723b0040fa2e8b3
/api
is missing I guess
I solve my problem by adding identity
to the scope. It appear that email
isn't enough (but it should be)...
I let you close the issue as it may reveal an unexpected behavior.
Any way, thnaks again for this gem :+1:
Hi !
Thanks for this gem :+1:
I have troubles in production, as I was notified my users have "Invalid Credentials" error while trying to sign-in with discord...
What is strange, Is that It's working fine with my discord account (i'm the app owner)
Here is log of one my user failure (
{"code": 0, "message": "401: Unauthorized"}
)I'm using Devise, here is the scope
Maybe my discord app require special rights to allow other users to use discord. Is it the case ?
Thanks!