[SOLVED] OAuth2 flutter web, gives exception role: guests missing scope (account)
- 0
- Self Hosted
- Flutter
- Users
- Accounts

I am trying to use Oauth2 to authenticate users i am using keycloak oidc and flutter. Well it does create session in keycloak and creates user in appwrite but when i try to get account/user details it gives the exception that role: guests... What should i do?
Attaching code snippet

This might be a 3rd party cookie problem. In production, you'll need to have a custom domain. Locally, you can try to enable 3rd party cookies.
You can search around discord for similar threads.

Well i am using organizational domain you know everything internally, in house servers and stuff

Its under development yet

Doesn't matter.

Okay lemme check,

Enabled third party cookies but same problem 🙂

@Maniac_Fighter

Please, it's not recommended to pin people as it could be disruptive for them 😅

Where are you getting the error? While trying to get the account?

Ohhh my bad sorry abt that, its on future result whera i am trying to get account

Can you try clearing your cookies?

Tried it too, still same problem

Solved, when i tried to self host appwrite on local it worked as earlier i hosted it on another IP, so i guess there are some custom domain issues and stuff will check it and try again.

[SOLVED];OAuth2 flutter web, gives exception role: guests missing scope (account)

[SOLVED] OAuth2 flutter web, gives exception role: guests missing scope (account)
Recommended threads
- Properly contained appwrite main app can...
Hello! We tried to reinstall our main self-hosted appwrite with a new method but the main app 2 mins after launch throw this error: ```2025/06/22 16:16:14 s...
- Broken message
https://github.com/appwrite/appwrite/issues/10081 I just realized that I can just build appwrite myself, was this bug fixed in latest dev release?
- 404 errors after 7 Days
Local hosted Appwrite via docker. Last version and current version. After exactly 7 days Appwrite stops working. I get 404 route not found, cannot access anyth...
