pub trait AuthPluginFactory: Send + Sync {
// Required method
fn create_plugin(&self) -> Result<Box<dyn AuthPlugin>, PluginError>;
}
Expand description
Helper trait for creating authentication plugins
Required Methods§
Sourcefn create_plugin(&self) -> Result<Box<dyn AuthPlugin>, PluginError>
fn create_plugin(&self) -> Result<Box<dyn AuthPlugin>, PluginError>
Create a new authentication plugin instance