rest server: return UserInformation from ApiAuth::check_auth
This need impl UserInformation for Arc<CachedUserInfo> which is implemented with proxmox 0.13.2 Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
7fa9a37c7c
commit
98b7d58b94
@ -3,6 +3,7 @@ use std::os::unix::io::RawFd;
|
||||
use anyhow::{bail, format_err, Error};
|
||||
|
||||
use proxmox::tools::fd::Fd;
|
||||
use proxmox::api::UserInformation;
|
||||
|
||||
mod compression;
|
||||
pub use compression::*;
|
||||
@ -41,7 +42,7 @@ pub trait ApiAuth {
|
||||
&self,
|
||||
headers: &http::HeaderMap,
|
||||
method: &hyper::Method,
|
||||
) -> Result<String, AuthError>;
|
||||
) -> Result<(String, Box<dyn UserInformation + Sync + Send>), AuthError>;
|
||||
}
|
||||
|
||||
static mut SHUTDOWN_REQUESTED: bool = false;
|
||||
|
Reference in New Issue
Block a user