Organize device inventory by customer and restrict token access to its audience
This commit is contained in:
@@ -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),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user