#[SOLVED] Access blocked error google OAuth

49 messages · Page 1 of 1 (latest)

scenic forge
#

i am getting this error when trying to login with google. I set up everything in my appwrite console as well as at the ggogle side in google developer console. Am i missing something?

late locust
#

Hi, allow me to look into this

scenic forge
#

Hi, thank you

wind moth
scenic forge
#

yes i have also created for ios as well

#

but where is the problem actually

scenic forge
#

yes i am using flutter

late locust
#

can you click on "See error details"

#

and paste it here

scenic forge
#

yes it says that i must add the redirect url the same which i already added to the google console

scenic forge
#

i am using appwrite 1.2.0 by the way

scenic forge
#

is this the problem on configuring my google console or on appwrite ?

wind moth
#

I think you used the appid of web app instead of ios app in appwrite project

#

not the same

#

and these look like configuration for browser instead of ios app

#

Im curious if it is possible to add multiple clientIds for different devices for the same oauth provider

tall hazel
scenic forge
# wind moth

yes i have used the web client id and secret but when i use the ios client id as app id in appwrite, whre do i get then app secret for ios? I dont see the secret key for ios in google console

#

i didnt get it it means i can just use any oauth provider for just ios, android, or web not all of them

wind moth
#

I dont think if you should be able to use webapp's credentials for ios app

scenic forge
#

i am using flutter i taught when i set up the oauth for google in appwrite it works in ios,android and web. I may missing some knowledge can you give me information how it works and how basically can i use oauth for my flutter which i then sign in a user from different platforms to the same oauth provider

wind moth
#

I dont know much flutter myself, but it seems like for ios apps there's no secret credential from gcp, and app secret is a requirement in appwrite settings

scenic forge
wind moth
#

apparently you should pass an empty string for app_secret, but I'm doubtful about if it there's any extra configuration needed

scenic forge
#

i cant leave the app secret field empty

#

in appwrite

scenic forge
#

what should i do now?

tall hazel
scenic forge
#

so which informations i set to the appwrite from google console. First i used the web credentials from google console it didnt work.

tall hazel
#

are you using https for your endpoint in your code? do you have a reverse proxy in front of appwrite?

scenic forge
#

yes i am using https and its running in a container in my synology nas with reverse proxy built in in my nas

tall hazel
scenic forge
#

yes

#

wait i make a screenshot of my reverse proxy setting for appwrite container

tall hazel
# scenic forge

right there it says http 🧐

Would you please switch that to HTTPS and use the HTTPS port that appwrite is running on?

scenic forge
#

ok i changed it

scenic forge
#

ooooh thats just amazing, thank you sooo much Steven. Now i am able to login without a problem.

#

for logging out a user i just need to delete then all sessions?

#

Now i can play arround a bit. I am ok with closing this. Thank you very much @tall hazel and all who has helped me with patient.