
@Steven

https://stackoverflow.com/questions/32071856/how-to-get-client-secret-from-google-developers-console-in-ios I found this on stackoverflow

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

i cant leave the app secret field empty

in appwrite

what should i do now?

uhhh for Appwrite and OAuth, you should only be setting up OAuth between the provider and Appwrite and not provider and mobile. with the 1 configuration of Appwrite <> OAuth2 Provider, you can call account.createOAuth2Session()
from mobile AND web

yes exactly i also taught the same, that i must configure the OAuth between appwrite and provider.

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

in here i see the redirect uri says https://appwrite....

but over here it's http://...

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

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

is the reverse proxy passing to appwrite via HTTPS?

yes

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


right there it says http 🧐
Would you please switch that to HTTPS and use the HTTPS port that appwrite is running on?

ok i changed it


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 @Steven and all who has helped me with patient.

Ya, delete the current session. See https://appwrite.io/docs/client/account?sdk=flutter-default#accountDeleteSession

[SOLVED] Access blocked error google OAuth
Recommended threads
- Function 404 error - Deployment with the...
I have a function in my Appwrite Cloud (free plan) project that cannot be accessed or deleted (404 in both UI and CLI). I'm stuck at the 5 functions limit and c...
- 1.6 to 1.7 does not work
Appwrite (self-hosted) stopped working after updating from 1.6.2 that was stable. Getting the general_server_error. Mentioning I fallowed all steps for upgrad...
- How to have two Appwrite Instances in Sy...
Hello, I am new to Appwrite. I am currently developing a training app for our sport with a friend and we would like to use Appwrite for this. We would like to d...
