
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
- Invalid `success` param
Hi again, I've tried to set up the login process. However, I always get the message: `Invalid success param: URL host must be one of: localhost, xxx` I've alr...
- Is it possible to have multiple smtp on ...
I already have one in one project but is it possible to use different one in another?
- How to pass session from browser to a mo...
I have a self-hosted Appwrite container. I also have a www page (A) which should acts as login page for different www services (B). User click login in B, is re...
