pub struct Config<T: Serialize + DeserializeOwned + Send + Sync, F: Fn(&str, &str, SocketAddr, &FatRequest) -> Fut + Send + Sync, Fut: Future<Output = Validation<T>> + Send + Sync> { /* private fields */ }
Expand description
The configured authentication. This can be attached to a Kvarn host using the Self::mount
method. You can call Self::login_status
to get a function to use in your extensions to
check for authentication status.