🩹(backend) fix scope typo addons settings

The external viewset expected a plural "rooms:x" scope instead of
the incorrect singular "room:x".

Update it to accept the proper scope and emit tokens accordingly.
This commit is contained in:
lebaudantoine
2026-04-29 16:30:49 +02:00
parent 6bb8084aa0
commit e5a804f748
2 changed files with 2 additions and 2 deletions
@@ -258,7 +258,7 @@ def test_poll_session_authenticated():
assert isinstance(access_token, str) and access_token # non-empty string
assert response_data == {
"expires_in": 7200,
"scope": "room:create",
"scope": "rooms:create",
"state": "authenticated",
"token_type": "Bearer",
}
+1 -1
View File
@@ -933,7 +933,7 @@ class Base(Configuration):
environ_prefix=None,
)
ADDONS_TOKEN_SCOPE = values.Value(
"room:create",
"rooms:create",
environ_name="ADDONS_TOKEN_SCOPE",
environ_prefix=None,
)