Breaking changes to auth provider, principal store outsourced to new config file

This commit is contained in:
Lennart
2025-02-09 17:19:08 +01:00
parent a71000ccf7
commit 8948589b09
16 changed files with 137 additions and 133 deletions

View File

@@ -1,5 +1,5 @@
use rustical_frontend::FrontendConfig;
use rustical_store::auth::StaticUserStoreConfig;
use rustical_store::auth::TomlUserStoreConfig;
use serde::{Deserialize, Serialize};
#[derive(Debug, Deserialize, Serialize)]
@@ -35,7 +35,7 @@ pub enum DataStoreConfig {
#[serde(tag = "backend", rename_all = "snake_case")]
#[serde(deny_unknown_fields)]
pub enum AuthConfig {
Static(StaticUserStoreConfig),
Toml(TomlUserStoreConfig),
}
#[derive(Debug, Deserialize, Serialize, Default)]