zorn-v / nextcloud-social-login

GNU Affero General Public License v3.0
198 stars 137 forks source link

invalid oauth2 redirect_uri on Discord #404

Closed touhoku-japan closed 1 year ago

touhoku-japan commented 1 year ago

Discord login gives error "invalid oauth2 redirect_uri"

  1. https://nextcloud.example.com/index.php/apps/sociallogin/oauth/discord configuration is ok
  2. CLIENT ID and CLIENT SECRET settings are OK.

But for some reason I get the above error.

How can i solve it?

Should I look at some logs? where is the log?

zorn-v commented 1 year ago

You can check browser address bar for something like redirect_url=YOUR_URL and compare it with those in discord oauth app settings.

touhoku-japan commented 1 year ago

it's unfortunate news, but there was nothing wrong with it. was the same.

touhoku-japan commented 1 year ago

Is it wrong to use cloudflare proxy?

touhoku-japan commented 1 year ago

It was all my fault. I'm sorry. redirect_url was slightly wrong. thanks to reply.