Skip to main content

TwoFactorApi

Trait TwoFactorApi 

Source
pub trait TwoFactorApi: Send + Sync {
Show 24 methods // Required methods fn delete_authenticator<'a, 'life0, 'async_trait>( &'life0 self, two_factor_authenticator_delete_request_model: Option<TwoFactorAuthenticatorDeleteRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn delete_duo<'a, 'life0, 'async_trait>( &'life0 self, two_factor_duo_delete_request_model: Option<TwoFactorDuoDeleteRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn delete_email<'a, 'life0, 'async_trait>( &'life0 self, two_factor_email_delete_request_model: Option<TwoFactorEmailDeleteRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn delete_organization_duo<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, two_factor_organization_duo_delete_request_model: Option<TwoFactorOrganizationDuoDeleteRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn delete_web_authn<'a, 'life0, 'async_trait>( &'life0 self, two_factor_web_authn_delete_request_model: Option<TwoFactorWebAuthnDeleteRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorWebAuthnDeleteResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn delete_web_authn_all<'a, 'life0, 'async_trait>( &'life0 self, two_factor_web_authn_delete_all_request_model: Option<TwoFactorWebAuthnDeleteAllRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn delete_yubi_key<'a, 'life0, 'async_trait>( &'life0 self, two_factor_yubi_key_delete_request_model: Option<TwoFactorYubiKeyDeleteRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn get<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorProviderResponseModelListResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_authenticator<'a, 'life0, 'async_trait>( &'life0 self, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorAuthenticatorResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn get_duo<'a, 'life0, 'async_trait>( &'life0 self, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorDuoResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn get_email<'a, 'life0, 'async_trait>( &'life0 self, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorEmailResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn get_organization<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorProviderResponseModelListResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn get_organization_duo<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorOrganizationDuoResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn get_recover<'a, 'life0, 'async_trait>( &'life0 self, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorRecoverResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn get_web_authn<'a, 'life0, 'async_trait>( &'life0 self, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorWebAuthnResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn get_yubi_key<'a, 'life0, 'async_trait>( &'life0 self, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorYubiKeyResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn put_authenticator<'a, 'life0, 'async_trait>( &'life0 self, two_factor_authenticator_update_request_model: Option<TwoFactorAuthenticatorUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorAuthenticatorUpdateResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn put_duo<'a, 'life0, 'async_trait>( &'life0 self, two_factor_duo_update_request_model: Option<TwoFactorDuoUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorDuoUpdateResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn put_email<'a, 'life0, 'async_trait>( &'life0 self, two_factor_email_update_request_model: Option<TwoFactorEmailUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorEmailUpdateResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn put_organization_duo<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, two_factor_duo_update_request_model: Option<TwoFactorDuoUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorOrganizationDuoUpdateResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn put_web_authn<'a, 'life0, 'async_trait>( &'life0 self, two_factor_web_authn_update_request_model: Option<TwoFactorWebAuthnUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorWebAuthnUpdateResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn put_yubi_key<'a, 'life0, 'async_trait>( &'life0 self, two_factor_yubi_key_update_request_model: Option<TwoFactorYubiKeyUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorYubiKeyUpdateResponseModel, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn send_email_login<'a, 'life0, 'async_trait>( &'life0 self, two_factor_email_login_request_model: Option<TwoFactorEmailLoginRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait; fn send_email_setup<'a, 'life0, 'async_trait>( &'life0 self, two_factor_email_setup_request_model: Option<TwoFactorEmailSetupRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait;
}

Required Methods§

Source

fn delete_authenticator<'a, 'life0, 'async_trait>( &'life0 self, two_factor_authenticator_delete_request_model: Option<TwoFactorAuthenticatorDeleteRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

DELETE /two-factor/authenticator

Source

fn delete_duo<'a, 'life0, 'async_trait>( &'life0 self, two_factor_duo_delete_request_model: Option<TwoFactorDuoDeleteRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

DELETE /two-factor/duo

Source

fn delete_email<'a, 'life0, 'async_trait>( &'life0 self, two_factor_email_delete_request_model: Option<TwoFactorEmailDeleteRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

DELETE /two-factor/email

Source

fn delete_organization_duo<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, two_factor_organization_duo_delete_request_model: Option<TwoFactorOrganizationDuoDeleteRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

DELETE /organizations/{id}/two-factor/duo

Source

fn delete_web_authn<'a, 'life0, 'async_trait>( &'life0 self, two_factor_web_authn_delete_request_model: Option<TwoFactorWebAuthnDeleteRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorWebAuthnDeleteResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

DELETE /two-factor/webauthn

Source

fn delete_web_authn_all<'a, 'life0, 'async_trait>( &'life0 self, two_factor_web_authn_delete_all_request_model: Option<TwoFactorWebAuthnDeleteAllRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

DELETE /two-factor/webauthn/all

Source

fn delete_yubi_key<'a, 'life0, 'async_trait>( &'life0 self, two_factor_yubi_key_delete_request_model: Option<TwoFactorYubiKeyDeleteRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

DELETE /two-factor/yubikey

Source

fn get<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorProviderResponseModelListResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /two-factor

Source

fn get_authenticator<'a, 'life0, 'async_trait>( &'life0 self, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorAuthenticatorResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /two-factor/get-authenticator

Source

fn get_duo<'a, 'life0, 'async_trait>( &'life0 self, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorDuoResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /two-factor/get-duo

Source

fn get_email<'a, 'life0, 'async_trait>( &'life0 self, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorEmailResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /two-factor/get-email

Source

fn get_organization<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorProviderResponseModelListResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /organizations/{id}/two-factor

Source

fn get_organization_duo<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorOrganizationDuoResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/two-factor/get-duo

Source

fn get_recover<'a, 'life0, 'async_trait>( &'life0 self, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorRecoverResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /two-factor/get-recover

Source

fn get_web_authn<'a, 'life0, 'async_trait>( &'life0 self, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorWebAuthnResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /two-factor/get-webauthn

Source

fn get_yubi_key<'a, 'life0, 'async_trait>( &'life0 self, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorYubiKeyResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /two-factor/get-yubikey

Source

fn put_authenticator<'a, 'life0, 'async_trait>( &'life0 self, two_factor_authenticator_update_request_model: Option<TwoFactorAuthenticatorUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorAuthenticatorUpdateResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

PUT /two-factor/authenticator

Source

fn put_duo<'a, 'life0, 'async_trait>( &'life0 self, two_factor_duo_update_request_model: Option<TwoFactorDuoUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorDuoUpdateResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

PUT /two-factor/duo

Source

fn put_email<'a, 'life0, 'async_trait>( &'life0 self, two_factor_email_update_request_model: Option<TwoFactorEmailUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorEmailUpdateResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

PUT /two-factor/email

Source

fn put_organization_duo<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, two_factor_duo_update_request_model: Option<TwoFactorDuoUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorOrganizationDuoUpdateResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

PUT /organizations/{id}/two-factor/duo

Source

fn put_web_authn<'a, 'life0, 'async_trait>( &'life0 self, two_factor_web_authn_update_request_model: Option<TwoFactorWebAuthnUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorWebAuthnUpdateResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

PUT /two-factor/webauthn

Source

fn put_yubi_key<'a, 'life0, 'async_trait>( &'life0 self, two_factor_yubi_key_update_request_model: Option<TwoFactorYubiKeyUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<TwoFactorYubiKeyUpdateResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

PUT /two-factor/yubikey

Source

fn send_email_login<'a, 'life0, 'async_trait>( &'life0 self, two_factor_email_login_request_model: Option<TwoFactorEmailLoginRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /two-factor/send-email-login

Source

fn send_email_setup<'a, 'life0, 'async_trait>( &'life0 self, two_factor_email_setup_request_model: Option<TwoFactorEmailSetupRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /two-factor/send-email

Implementors§