Back

Github Login not working, when using custom domain

  • 0
  • Cloud
sarun1001
13 Dec, 2023, 12:22

Hi, Im new to appwrite i'm currently exploring appwrite cloud beta, try to add custom domain in settings and used a subdomain which is configured using cloudflare, everything except 'signin with github' working perfectly , when i try to sign in with github on dashboard it returns -- "This site can’t be reached The webpage at https://cloud.appwrite.io/v1/vcs/github/callback?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdocs.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=%7B"success"%3A"https%3A%5C%2F%5C%2Fappwrite.example.com"%2C"failure"%3A"https%3A%5C%2F%5C%2Fappwrite.example.com"%7D might be temporarily down or it may have moved permanently to a new web address. ERR_FAILED" why is this happening, any solution to make it work

TL;DR
The user is experiencing an issue with logging in through GitHub on the Appwrite dashboard using a custom domain. The error message suggests that the redirect URI does not match the registered callback URL for the application. The solution is to configure the callback URLs in GitHub with the custom domain.
ideclon
13 Dec, 2023, 16:53

Looks like you haven’t configured the callback URLs in GitHub with your custom domain

sarun1001
13 Dec, 2023, 17:50

can you pls give more info into this

Drake
13 Dec, 2023, 20:14

VCS GitHub? What are you doing exactly? You're trying to add GitHub login in your app?

sarun1001
14 Dec, 2023, 00:22

no, i'm trying to access the dashboard , i can login using email and password, but when i use github login in dashboard i get this error

sarun1001
14 Dec, 2023, 00:24
Drake
14 Dec, 2023, 01:07

👀 uhh what? Are you self-hosting or is this is on https://cloud.appwrite.io?

sarun1001
14 Dec, 2023, 09:14

its not self hosted, its on appwrite cloud, i add a my custom domain in settings of appwrite cloud then i clicked on url after verification, it takes me to dashboard login page (through my custom url - custom url is showing instead of cloud.appwrite.io in chrome) when i click on github login which is on the dashboard login page i get the above error. Normal login using email & password is working

ideclon
14 Dec, 2023, 11:04

It’s not going to be possible to sign into Appwrite with a custom domain, as you have no way to add your custom domain as a valid Callback URL to Appwrite’s GitHub application.

ideclon
14 Dec, 2023, 11:04

I’m a bit confused about what’s going on here still, though

ideclon
14 Dec, 2023, 11:06

Ohhh wait. Yeah, the Custom Domain is for you to use as the Endpoint in development. You shouldn’t really attempt to use the Console via the Custom Domain - I’d expect things to break in interesting ways…

sarun1001
16 Dec, 2023, 12:02

I was also surprised when i saw github login through my custom domain, but i thought appwrite somehow managed to make it work, thanks for clearing the confusion, btw is it ok to login and use dashboard through custom domain instead of cloud.appwrite.io

Drake
16 Dec, 2023, 15:51

No, you should be using cloud.appwrite.io. were probably going to prevent accessing the console with a custom domain eventually

ideclon
16 Dec, 2023, 23:00

Maybe Appwrite shouldn’t allow access to the console from any address other than _APP_DOMAIN?

Drake
16 Dec, 2023, 23:22

That is the plan

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