mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-10 15:29:32 +00:00
use new auth api crate
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8b3d568beb
commit
5720ba2dce
@ -14,6 +14,7 @@ regex.workspace = true
|
|||||||
serde.workspace = true
|
serde.workspace = true
|
||||||
serde_plain.workspace = true
|
serde_plain.workspace = true
|
||||||
|
|
||||||
|
proxmox-auth-api = { workspace = true, features = [ "api-types" ] }
|
||||||
proxmox-lang.workspace=true
|
proxmox-lang.workspace=true
|
||||||
proxmox-schema = { workspace = true, features = [ "api-macro" ] }
|
proxmox-schema = { workspace = true, features = [ "api-macro" ] }
|
||||||
proxmox-serde.workspace = true
|
proxmox-serde.workspace = true
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
|
use proxmox_auth_api::{APITOKEN_ID_REGEX_STR, USER_ID_REGEX_STR};
|
||||||
|
|
||||||
pub mod common_regex;
|
pub mod common_regex;
|
||||||
pub mod percent_encoding;
|
pub mod percent_encoding;
|
||||||
|
|
||||||
@ -85,14 +87,14 @@ pub use maintenance::*;
|
|||||||
mod network;
|
mod network;
|
||||||
pub use network::*;
|
pub use network::*;
|
||||||
|
|
||||||
#[macro_use]
|
pub use proxmox_auth_api::types as userid;
|
||||||
mod userid;
|
pub use proxmox_auth_api::types::{Authid, Userid};
|
||||||
pub use userid::Authid;
|
pub use proxmox_auth_api::types::{Realm, RealmRef};
|
||||||
pub use userid::Userid;
|
pub use proxmox_auth_api::types::{Tokenname, TokennameRef};
|
||||||
pub use userid::{Realm, RealmRef};
|
pub use proxmox_auth_api::types::{Username, UsernameRef};
|
||||||
pub use userid::{Tokenname, TokennameRef};
|
pub use proxmox_auth_api::types::{
|
||||||
pub use userid::{Username, UsernameRef};
|
PROXMOX_GROUP_ID_SCHEMA, PROXMOX_TOKEN_ID_SCHEMA, PROXMOX_TOKEN_NAME_SCHEMA,
|
||||||
pub use userid::{PROXMOX_GROUP_ID_SCHEMA, PROXMOX_TOKEN_ID_SCHEMA, PROXMOX_TOKEN_NAME_SCHEMA};
|
};
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
mod user;
|
mod user;
|
||||||
|
Loading…
Reference in New Issue
Block a user