Back

OAuth2 does not add port number to redirect uri

  • 0
  • Auth
D.Thắng
24 Aug, 2024, 16:09

My application deployed to single server, the ports 80/443 already busy by front-end of application. Backend deployed to the same server at 1443 port. I try to login with OAuth, afterwards it tries redirect me to https://mydomain.com/ instead of using port at the end, and oauth can't complete successfuly

TL;DR
Developers are trying to use OAuth2 for login but the redirect URI is missing the port number, causing authentication failure. The backend is deployed on a different port (1443) while the front-end is on ports 80/443. Solution: Update the redirect URI to include the port number (e.g., https://mydomain.com:1443/).
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