Organize device inventory by customer and restrict token access to its audience

This commit is contained in:
2026-11-17 21:55:24 +01:00
parent aeb9adc649
commit 0afaca1d64
39 changed files with 1950 additions and 225 deletions
+3
View File
@@ -17,6 +17,8 @@ pub struct Cursor {
scope: String,
pub as_of: DateTime<Utc>,
pub last: Uuid,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub last_tenant: Option<Uuid>,
pub limit: u16,
}
impl Cursor {
@@ -71,6 +73,7 @@ impl Cursor {
scope: scope.into(),
as_of: Utc::now(),
last: Uuid::nil(),
last_tenant: None,
limit: q.limit.unwrap_or(100),
})
}