///
/// `env_type` - The environment type.
///
- /// `api_auth` - The Authentification handler
+ /// `api_auth` - The Authentication handler
///
/// `get_index_fn` - callback to generate the root page
/// (index). Please note that this fuctions gets a reference to
Ok(())
}
- /// Enable the authentification log feature
+ /// Enable the authentication log feature
///
- /// When enabled, all authentification requests are logged to the
+ /// When enabled, all authentication requests are logged to the
/// specified file. This function also registers a
/// `api-auth-log-reopen` command one the [CommandSocket].
pub fn enable_auth_log<P>(
//!
//! ## Features
//!
-//! * HTTP and HTTP2
//! * highly threaded code, uses Rust async
//! * static API definitions using schemas
//! * restartable systemd daemons using `systemd_notify`
//! * support for long running worker tasks (threads or async tokio tasks)
-//! * supports separate access and authentification log files
-//! * separate control socket to trigger management operations
+//! * supports separate access and authentication log files
+//! * extra control socket to trigger management operations
//! - logfile rotation
//! - worker task management
//! * generic interface to authenticate user
mod h2service;
pub use h2service::*;
-/// Authentification Error
+/// Authentication Error
pub enum AuthError {
Generic(Error),
NoData,
}
}
-/// User Authentification trait
+/// User Authentication trait
pub trait ApiAuth {
/// Extract user credentials from headers and check them.
///