Back

"redirect uri mismatch" Google & Discord Oauth

  • 0
  • Self Hosted
  • Flutter
  • Android
Jamy
21 Jul, 2024, 21:59

Hello everyone,

I'm trying to enable Google & Discord authentification with Flutter. I read all the thread about it, but still don't understand why it is not working on my side.

  1. I have enable the provider in the console
  2. I think I have set up everything on Discord & Console Side (App ID, App Secret, Callback URI)
  3. But I have a "Redirect Uri Mismatch" error when I call : await account.createOAuth2Session(provider: OAuthProvider.discord,)

I use Cloudflare as reverse proxy, and HTTPS is enabled. It seems the error come from here.

While trying to fix this issue, another one happened : now, I have Error 412 : project_provider_disabled. I took down then up the docker, I enabled/disabled the provider in the console, but having this issue.. Any idea ?

Appwrite SDK for Flutter version : 12.0.4 Appwrite docker version : 1.5.7

TL;DR
- Developer experiencing "redirect uri mismatch" error with Google & Discord OAuth integration in Flutter - Enabled provider in console, set up Discord & Console Side (App ID, App Secret, Callback URI) - Error occurs when calling await account.createOAuth2Session(provider: OAuthProvider.discord) - Using Cloudflare as reverse proxy with HTTPS enabled - Also facing Error 412: project_provider_disabled after trying to fix initial issue - Flutter SDK version: 12.0.4, Appwrite docker version: 1.5.7
Jamy
21 Jul, 2024, 21:59

@bad_advice

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more