Back

[SOLVED] Invalid redirect URI OAuth

  • 0
  • Accounts
  • Web
XaFigg
13 Aug, 2023, 17:18

Web SDK version 11.0.0 Appwrite 1.3.8 sellf-hosting

TL;DR
Issue: Invalid redirect URI OAuth Solution: - Check if your server is behind a reverse proxy. - Use the 'GENERATED URL' from the 'URL Generator' page for the redirect URI. - Make sure the 'redirect_uri' is using HTTPS instead of HTTP. - Set up SSL and change Cloudflare to Full. - Ensure that the Web SDK version is 11.0.0 and Appwrite version is 1.3.8.
XaFigg
13 Aug, 2023, 17:18

Alright Alright ^^

Binyamin
13 Aug, 2023, 17:22

Same as mine.

Binyamin
13 Aug, 2023, 17:22

Try to use the GENERATED URL from the URL Generator page Is it working?

XaFigg
13 Aug, 2023, 17:23

Yeah

Binyamin
13 Aug, 2023, 17:24

Mmm okay I think I see it

Binyamin
13 Aug, 2023, 17:24

Is your server is behind some reverse proxy?

XaFigg
13 Aug, 2023, 17:25

Like this ?

XaFigg
13 Aug, 2023, 17:25

"Proxied"

Binyamin
13 Aug, 2023, 17:25

You can see that the redirect_uri http

Binyamin
13 Aug, 2023, 17:25

And not https

XaFigg
13 Aug, 2023, 17:25

Ohhh

Binyamin
13 Aug, 2023, 17:25

What you'll need to do for that is

Binyamin
13 Aug, 2023, 17:26

Force HTTPS and change <:cloudflare:1026272852900581496> Cloudflare to Full You can see both steps here: https://book.appread.io/post-installation#ssl-generation

XaFigg
13 Aug, 2023, 17:27

I was planning to do this step later (generating an SSL) that I had just found on your site (which is great by the way). But I'm going to do it now ^^

XaFigg
13 Aug, 2023, 17:27

Thanks, I'll get back to you later.

Binyamin
13 Aug, 2023, 17:27

Thanks 👍

XaFigg
13 Aug, 2023, 17:33

Binyamin
13 Aug, 2023, 17:33

<a:ablobattention:492776678742032395>

XaFigg
13 Aug, 2023, 17:34

A big thank you to you, and I just wanted to talk a bit with you about scaling, if you don't mind ^^

Binyamin
13 Aug, 2023, 17:34

👍 Sure

XaFigg
13 Aug, 2023, 17:34

I open another post?

Binyamin
13 Aug, 2023, 17:34

It may be better yes

XaFigg
13 Aug, 2023, 17:34

Okay

XaFigg
13 Aug, 2023, 17:35

[SOLVED] Invalid redirect URI OAuth

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