#[SOLVED] Google Oauth: missing redirect url, appwrite flutter sdk sends wrong redirect URL

18 messages · Page 1 of 1 (latest)

glacial void
#

I am doing Google Oauth in flutter app using Appwrite

My appwrite is selfhosted running locally on my laptop in a docker container. I had my reasons to tunnel it using
Windows dev tunnels

I am attaching images of my configurations and errors,

this is my tunnel URL
https://wtjf7zs9-5050.inc1.devtunnels.ms

I do not understand why the error is happening it used to work when i used ngrok for tunneling but then now it is not working, please help

But again in the error details we see the redirect url is localhost oriented so why is that ... that is why i am saying the client does not send the correct redirect url

glacial void
#

It still works with Ngrok so now i do not understand wether it is the sdk at fault or microsoft dev tunnels

glacial void
#

devtunnel host -p 80 --allow-anonymous --protocol http

This is the command i use for hosting the tunnel

dark sierra
glacial void
#

alright tried it with https

#

still same error flutter sdk sends the localhost url as the redirect url

#

i copied the url to which the chrome is going the firt request initiated after i press the google sign in button and inspected it .... in the request you can see its going as localhost but this did not happen with ngrok

#

the ngrok one looked like this

dark sierra
#

It seems the tunnel isn't setting the host header to the original domain

glacial void
#

hey @dark sierra , this helped really thanks a lot 🙏🏻🙏🏻 you saved my day 🥳 will try to look into the depth of it on my own next time but thanks a lot

#

this worked as instructed in the link