Rank 3: Container
Hi, I am trying to use Authentik for OAuth2, but after successful redirection i get the error:
missing scope (account)
Votes
0
Replies
16
Participants
Unknown
Messages
17
Rank 3: Container
Hi, I am trying to use Authentik for OAuth2, but after successful redirection i get the error:
missing scope (account)
Rank 3: Container
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
Rank 3: Container
Oh, I was currently using account.getSession('current');
Rank 3: Container
to check if the user is authenticated
Rank 3: Container
does that make a difference?
I think
Rank 3: Container
Just tried account.get(), same issue AppwriteException: User (role: guests) missing scope (account)
Rank 3: Container
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?
Admin
yes i think that makes a difference.
Admin
not for access-wise, but account.get() is faster than account.getSession('current')
Rank 3: Container
oh, any tips on https support, i currently edited the hosts file to map local ip to the domain
Admin
if you can't get HTTPS on your front end, you can try accessing appwrite without https
Rank 3: Container
oh, its currently setup to redirect to https , now it might need extra configuration...
Rank 3: Container
Fixed the issue, adding HTTPS=true in react js start script did something ig