I have been successful in getting the google oauth to work on my localhost but when I deployed to my testing server, the back url given creates an error in appwrite console.
I have 3 environments:
- DEV: https://localhost
- Testing: https://testing.atomtalkpvtltd.com
- Prod: https://app.atomtalkpvtltd.com
I am having problem in testing and prod environment. The appwrite platform has both testing and prod urls in hostname. I have experimented with wild card also.
But even then, I am getting a 400 ERROR that "Invalid success param: URL host must be one of: localhost, backend.atomtalkpvtltd.com, app.atomtalkpvtltd.com, testing.atomtalkpvtltd.com"
So, what needs to be done? I am on v1.4.1 and self hosting
you can't put multiple hostnames. create another web platform
what about a wild card like * or *.atomtalkpvtltd.com ?
That you can do
It's best to go with *.atomtalkpvtltd.com if it's your domain as of security concerns.
Google OAuth Login back url creates an error in appwrite
Google OAuth Login invalid success
thanks. I will try and see the response. Will update soon.
I donβt think Platforms support wildcard subdomains
Check here
so, I finally got around to it and *.atomtalkpvtltd.com does not work. Check the screenshot but if I add the full subdomain: testing.atomtalkpvtltd.com , then it works.
I am on self hosting v1.4.1
interesting...the reason why is because we validate this success url differently compared to how we validate origins...it might be worth it creating an issue for this
for me it was working fine till yesterday, suddenly when I try to login from another device I saw this message
Please create a new <#1072905050399191082> post instead of posting in an existing thread
done
Recommended threads