stuff
This commit is contained in:
@@ -5,7 +5,7 @@ use uuid::Uuid;
|
||||
|
||||
use crate::auth::{
|
||||
webdav_tokens::{
|
||||
create_webdav_token as issue_token, list_webdav_tokens as load_tokens, parse_scopes,
|
||||
create_webdav_token as issue_token, list_webdav_tokens as load_tokens,
|
||||
revoke_webdav_token as revoke_token,
|
||||
},
|
||||
TenantScopedConn,
|
||||
@@ -19,7 +19,6 @@ pub struct WebdavTokenResponse {
|
||||
pub id: Uuid,
|
||||
pub tenant_id: Uuid,
|
||||
pub label: Option<String>,
|
||||
pub scopes: Vec<String>,
|
||||
pub created_at: String,
|
||||
pub last_used_at: Option<String>,
|
||||
pub expires_at: Option<String>,
|
||||
@@ -70,7 +69,6 @@ pub async fn create_webdav_token(
|
||||
user_id,
|
||||
tenant_id,
|
||||
payload.label.clone(),
|
||||
None,
|
||||
expires_at,
|
||||
)?;
|
||||
|
||||
@@ -97,7 +95,6 @@ fn webdav_token_to_response(token: WebdavToken) -> WebdavTokenResponse {
|
||||
id: token.id,
|
||||
tenant_id: token.tenant_id,
|
||||
label: token.label,
|
||||
scopes: parse_scopes(&token.scopes),
|
||||
created_at: to_iso(token.created_at),
|
||||
last_used_at: token.last_used_at.map(to_iso),
|
||||
expires_at: token.expires_at.map(to_iso),
|
||||
|
||||
Reference in New Issue
Block a user