Skip to main content

OpenStackMultifactorAuthMethod

Trait OpenStackMultifactorAuthMethod 

Source
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§

Source

fn get_supported_auth_methods(&self) -> Vec<&'static str>

Return list of supported authentication methods.

Source

fn requirements(&self, hints: Option<&Value>) -> Result<Value, AuthError>

Get the json schema of the data the plugin requires to complete the authentication.

Source

fn get_auth_data( &self, values: &HashMap<String, SecretString>, ) -> Result<(&'static str, Value), AuthError>

Authenticate the client with the configuration.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§