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_urithere 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
- How to change "collection Id" to "collec...
- Which flutter SDK version for Self Hoste...
Hi all, Is there a good way to figure out which version of flutter SDK and Dart SDK is current for latest available self-hosted 1.8.0 ? I know new features are...
- Bug Report: Crash when trying to createR...
https://github.com/appwrite/sdk-for-android/issues/96 I think the bug is related with this one https://discord.com/channels/564160730845151244/1443887021314539...