Hi, I am trying to use Authentik for OAuth2, but after successful redirection i get the error: missing scope (account)
I have the AppWrite Instance on faw.domain.com and the frontend app on myaccount.domain.com (via hosts file)
After success redirect get the user session with account.get()
Then every request will be made on behalf of the user
Oh, I was currently using account.getSession('current');
to check if the user is authenticated
does that make a difference?
I think
Just tried account.get(), same issue AppwriteException: User (role: guests) missing scope (account)
There is something to do about both the appwrite instance and the app being on the same domain right? does https make a difference? the web app is using http for development
If you added the domain as a web platform then it's okay
Do you run any server side or just from end code?
yes i think that makes a difference.
not for access-wise, but account.get()
is faster than account.getSession('current')
oh, any tips on https support, i currently edited the hosts file to map local ip to the domain
if you can't get HTTPS on your front end, you can try accessing appwrite without https
oh, its currently setup to redirect to https , now it might need extra configuration...
Fixed the issue, adding HTTPS=true in react js start script did something ig
Recommended threads
- Upgrade Issue
Am having issue upgrading my appwrite account to pro as my card number is 19 and the required input is 16 digit
- createEmailPasswordSession Error using S...
Did someone succeed using SSR approach for login?
- [Solved] how to get user prefs from serv...
i want to get a specific users preferences from serverside maybe i missunderstood something