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
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...