pub struct PasswordAuthenticator;Expand description
Token Authentication for OpenStack SDK.
Trait Implementations§
Source§impl OpenStackAuthType for PasswordAuthenticator
impl OpenStackAuthType for PasswordAuthenticator
Source§fn get_supported_auth_methods(&self) -> Vec<&'static str>
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>
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 api_version(&self) -> (u8, u8)
fn api_version(&self) -> (u8, u8)
Get the API version of the Identity Service the plugin need to communicate to.
Source§fn auth<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
http_client: &'life1 Client,
identity_url: &'life2 Url,
values: HashMap<String, SecretString>,
scope: Option<&'life3 AuthTokenScope>,
_hints: Option<&'life4 Value>,
) -> Pin<Box<dyn Future<Output = Result<Auth, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn auth<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
http_client: &'life1 Client,
identity_url: &'life2 Url,
values: HashMap<String, SecretString>,
scope: Option<&'life3 AuthTokenScope>,
_hints: Option<&'life4 Value>,
) -> Pin<Box<dyn Future<Output = Result<Auth, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Authenticate the client with the configuration.
Source§impl OpenStackMultifactorAuthMethod for PasswordAuthenticator
impl OpenStackMultifactorAuthMethod for PasswordAuthenticator
Source§fn get_supported_auth_methods(&self) -> Vec<&'static str>
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>
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>
fn get_auth_data( &self, values: &HashMap<String, SecretString>, ) -> Result<(&'static str, Value), AuthError>
Authenticate the client with the configuration.
Auto Trait Implementations§
impl Freeze for PasswordAuthenticator
impl RefUnwindSafe for PasswordAuthenticator
impl Send for PasswordAuthenticator
impl Sync for PasswordAuthenticator
impl Unpin for PasswordAuthenticator
impl UnsafeUnpin for PasswordAuthenticator
impl UnwindSafe for PasswordAuthenticator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more