Back

Google OAuth incorrect redirect

  • 0
  • Self Hosted
  • Web
WasklyWabbit#1
5 Sep, 2023, 06:46

Appwrite server local install, v1.4.1

Seems Appwrite is passing the wrong redirect to Google for OAuth? Server is hosted on port 81, but port seems to be this is missing when passed to Google.....

TL;DR
The user is experiencing an issue with Google OAuth redirect when using a non-standard port (port 81). The ACME standard does not support non-standard ports, so ACME cannot be used with port 81. Currently, Appwrite must be exposed and accessed on standard ports for everything to work correctly. A possible solution is to set up a local domain and use port 80 instead of port 81. The user also mentioned that the URL on the Google error dialog is missing port 81. This issue is documented on the Appwrite GitHub repository.
WasklyWabbit#1
5 Sep, 2023, 06:47
WasklyWabbit#1
5 Sep, 2023, 06:47
WasklyWabbit#1
5 Sep, 2023, 06:48

Note url on google error dialog is missing port 81

Ainz
5 Sep, 2023, 09:10

a quick fix is setup a local domain and use port 80

Drake
5 Sep, 2023, 22:02

as of today, Appwrite must be exposed/accessed on standard ports for everything to work correctly.

FYI, this is the related issue: https://github.com/appwrite/appwrite/issues/2365

ideclon
5 Sep, 2023, 23:40

Is there anything other than OAuth that goes wrong if Appwrite is exposed on non-standard ports, currently?

ideclon
5 Sep, 2023, 23:40

Assuming anything that creates a redirect URI, but I don't think there's anything outside of Auth that does that, currently?

ideclon
5 Sep, 2023, 23:41

Function V3 endpoints, possibly

Drake
6 Sep, 2023, 00:11

ssl cert generation

ideclon
6 Sep, 2023, 00:13

Is cert generation using standard ACME? Becuase I don't think there's any way to have ACME use a non standard port

Drake
6 Sep, 2023, 00:13

yes standard acme

WasklyWabbit#1
6 Sep, 2023, 06:09

ACME supports non-standard ports via DNS challenges. Unfortunately if Appwrite is using Traefic proxy then I believe that uses HTTP challenges, which are limited to ports 80/443 as you say.

Drake
6 Sep, 2023, 15:58

yes, we are using http challenge

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