(backend) wip introduce a token exchange endpoint

This commit is contained in:
lebaudantoine
2026-08-01 15:52:37 +02:00
parent 7fbcbc89ed
commit e701a89036
20 changed files with 1153 additions and 0 deletions
@@ -86,6 +86,14 @@ class HasRequiredRoomScope(BaseScopePermission):
}
class HasRequiredUserScope(BaseScopePermission):
"""Scope-based permissions for the external user endpoints."""
scope_map = {
"generate_transit_code": models.ApplicationScope.USERS_SESSION,
}
class RoomPermissions(permissions.BasePermission):
"""Permissions applying to the room API endpoint."""