Skip to content

Commit 8fa97f3

Browse files
committed
(fix): drop project:all and organization:all from preferred OAuth scopes
The console 'all' scope already covers project and organization access, so advertising the finer-grained aliases is redundant.
1 parent a175d33 commit 8fa97f3

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

src/mcp_server_appwrite/constants.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@
5555
"profile",
5656
"email",
5757
"all",
58-
"project:all",
59-
"organization:all",
6058
]
6159

6260
DISCOVERY_TTL_SECONDS = 300.0

tests/unit/test_auth.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,7 @@ def test_advertised_scopes_prefer_curated_subset(self):
9292
scopes = asyncio.run(auth.protected_resource_metadata())["scopes_supported"]
9393
finally:
9494
auth._discovery_cache.pop(pid, None)
95-
self.assertEqual(
96-
scopes,
97-
["openid", "profile", "email", "all", "project:all", "organization:all"],
98-
)
95+
self.assertEqual(scopes, ["openid", "profile", "email", "all"])
9996

10097
def test_advertised_scopes_drop_preferred_scopes_missing_from_discovery(self):
10198
pid = auth.configured_project_id()

0 commit comments

Comments
 (0)