Rank 3: Container
Is it possible to config it or am I forced to add another redirection? Appwrite is self-hosted behind a proxy.
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 3: Container
Is it possible to config it or am I forced to add another redirection? Appwrite is self-hosted behind a proxy.
Rank 3: Container
Adding an extra redirect url in discord developer protal works bc my proxy automatic forward the traffic, but is there any other way to set the redirect_uri to https
Rank 3: Container
and for the Discord Oauth2 I really dislike how Appwrite is using the email and handler for the user. What if the user changed their Discord linked email? Is it possible to use the user ID or something like that instead
Rank 3: Container
and I'm facing the same issue as #channel, maybe it's the cookie reason? I'm running Appwrite behind Apache2, maybe that might cause some issue?
Rank 3: Container
This is because I have to link a backend which is a discord bot to the frontend. Just by reading the email I have no idea who is who because the backend stores the user id. Is there any workaround for this? And I see there is a optional argument for the scope, is there anyway I can receive that information in my app after the redirection?
Admin
You should be proxying to Appwrite using https
Rank 3: Container
I tried, things got broken and I stayed. I use my own SSL and stuffs, with other services running as well
Rank 3: Container
Is there any config or anything that tells appwrite to redirect to https?
Admin
The appwrite session that is created should have a provider user id. If that isn't the right value, you can probably use the provider access token to make API calls to discord and fetch the username.
Rank 3: Container
Appwrite uses traffic or whatever that proxy service called and I use Apache2, bit of incompatibility
Admin
Yes, Appwrite has a feature to redirect http to https
Admin
Your SSL in front of your proxy shouldnt matter
Rank 3: Container
How to check?
Rank 3: Container
Ye, but for some reason a lot of problem occurs when I proxy https to https, so I just stayed
Admin
Admin
What problems?
Rank 3: Container
Such as login fails, or page not being served. It's been a while ago can't remember all
Admin
Weird...I highly recommend proxying to Appwrite using https
Rank 3: Container
I'll try next time I get on
Rank 3: Container
But HTTP works tho
Rank 3: Container
Even realtime
Rank 3: Container
So basically not use the appwrite auth system?
Admin
You already ran into the http redirect problem. You may also run into a cookie problem
Admin
No, you get the session after logging in
Rank 3: Container
It did turns out fine when I add another redirect in discord dev portal, and it's just the problem the the url parameter that appwrite redirected named "redirect_uri=http..."