Skip to main content

cloudillo_auth/
lib.rs

1//! Authentication subsystem.
2
3#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
4#![forbid(unsafe_code)]
5
6pub mod api_key;
7pub mod cleanup;
8pub mod handler;
9pub mod settings;
10pub mod webauthn;
11
12mod prelude;
13
14use crate::prelude::*;
15
16pub fn register_settings(
17	registry: &mut cloudillo_core::settings::SettingsRegistry,
18) -> ClResult<()> {
19	settings::register_settings(registry)
20}
21
22pub fn init(app: &App) -> ClResult<()> {
23	app.scheduler.register::<cleanup::AuthCleanupTask>()?;
24	Ok(())
25}