
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
- [Node.js SDK] Bypass 2GB file limit?
Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB Bucket limit etc. is setup corre...
- Relationship null, even when relationshi...
Hi Everyone, im experiencing issues with set relation data. When im setting the document id from the related database most of them seem fine, except one table. ...
- REQUEST FAILED IN MIGRATION
I was trying to moved my archived project to a self-host database . Though the Project is "read only" but there's a message that I can view and migrate data to...
