mirror of
https://github.com/suitenumerique/meet.git
synced 2026-07-26 11:58:53 +00:00
🩹(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:
@@ -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",
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user