
I'm trying to configure appwrite with SSL handled by ngrok and use oauth2
I'm not sure if this is a bug or not, my url includes ssl, but not the request. Looking the code seems like the problem is here: https://github.com/appwrite/appwrite/blob/main/app/controllers/api/account.php#L316
shouldn't getProtocol be https
in my case? https://github.com/utopia-php/swoole/blob/master/src/Swoole/Request.php#L90-L102
I'm will try to explain more about my flow, first considerate:
- appwrite is running under a ngrok domain with ssl https://appwrite.ngrok.domain.app/v1
- the frontend is in localhost and make the request to the ngrok domain
- The login page uses
createOAuth2Session
, the request to appwrite is:https://appwrite.ngrok.domain.app/v1/account/sessions/oauth2/github?success=successurl&failure=failureurl&project=projectid
- appwrite make a request to github, but in
redirect_uri
there isn't https (as shown in the image)
and as the redirect_uri
doesn't match, I got an error The redirect_uri MUST match the registered callback URL for this application
Recommended threads
- CSV Import not working
I am running 1.7.4, trying the sample book csv import. I get a pop up saying import started and then a quick follow up saying completed. Nothing ever appears ...
- ❗[Help] Function stuck in "waiting" stat...
Hi Appwrite team 👋 I'm trying to contribute to Appwrite and followed the official setup instructions from the CONTRIBUTING.md guide to run the platform locall...
- 1.7.0 Self Hosted Upgrade
Hi, I've tried a fresh install on 1.7.0 and I've also done a fresh install on 1.6.2. 1.6.2 is working fine fresh, update to 1.7.0 and migrate fails Fresh inst...
