pub trait OpenStackMultifactorAuthMethod: Send + Sync {
// Required methods
fn get_supported_auth_methods(&self) -> Vec<&'static str>;
fn requirements(&self, hints: Option<&Value>) -> Result<Value, AuthError>;
fn get_auth_data(
&self,
values: &HashMap<String, SecretString>,
) -> Result<(&'static str, Value), AuthError>;
}Expand description
The trait for multifactor-capable authentication methods.
Required Methods§
Sourcefn get_supported_auth_methods(&self) -> Vec<&'static str>
fn get_supported_auth_methods(&self) -> Vec<&'static str>
Return list of supported authentication methods.
Sourcefn requirements(&self, hints: Option<&Value>) -> Result<Value, AuthError>
fn requirements(&self, hints: Option<&Value>) -> Result<Value, AuthError>
Get the json schema of the data the plugin requires to complete the authentication.
Sourcefn get_auth_data(
&self,
values: &HashMap<String, SecretString>,
) -> Result<(&'static str, Value), AuthError>
fn get_auth_data( &self, values: &HashMap<String, SecretString>, ) -> Result<(&'static str, Value), AuthError>
Authenticate the client with the configuration.