feat: sso

This commit is contained in:
Zomatree
2025-11-18 21:33:21 +00:00
parent 27ea7345ea
commit 2bbd702ec2
7 changed files with 156 additions and 6 deletions

View File

@@ -209,6 +209,8 @@ impl Database {
} else {
EmailVerificationConfig::Disabled
},
sso: config.api.sso.clone(),
server_url: Some(config.hosts.api.parse().expect("Failed to parse API host url.")),
..Default::default()
};
@@ -244,6 +246,7 @@ impl Database {
event_channel: Some(crate::tasks::authifier_relay::sender()),
#[cfg(not(feature = "tasks"))]
event_channel: None,
..Default::default()
}
}
}