Trait WebAuthnApi

Source
pub trait WebAuthnApi: Send + Sync {
    // Required methods
    fn assertion_options<'a, 'life0, 'async_trait>(
        &'life0 self,
        secret_verification_request_model: Option<SecretVerificationRequestModel>,
    ) -> Pin<Box<dyn Future<Output = Result<WebAuthnLoginAssertionOptionsResponseModel, Error<AssertionOptionsError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn attestation_options<'a, 'life0, 'async_trait>(
        &'life0 self,
        secret_verification_request_model: Option<SecretVerificationRequestModel>,
    ) -> Pin<Box<dyn Future<Output = Result<WebAuthnCredentialCreateOptionsResponseModel, Error<AttestationOptionsError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn delete<'a, 'life0, 'async_trait>(
        &'life0 self,
        id: Uuid,
        secret_verification_request_model: Option<SecretVerificationRequestModel>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + 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<WebAuthnCredentialResponseModelListResponseModel, Error<GetError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn post<'a, 'life0, 'async_trait>(
        &'life0 self,
        web_authn_login_credential_create_request_model: Option<WebAuthnLoginCredentialCreateRequestModel>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<PostError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn update_credential<'a, 'life0, 'async_trait>(
        &'life0 self,
        web_authn_login_credential_update_request_model: Option<WebAuthnLoginCredentialUpdateRequestModel>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateCredentialError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

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

POST /webauthn/assertion-options

Source

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

POST /webauthn/attestation-options

Source

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

POST /webauthn/{id}/delete

Source

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

GET /webauthn

Source

fn post<'a, 'life0, 'async_trait>( &'life0 self, web_authn_login_credential_create_request_model: Option<WebAuthnLoginCredentialCreateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<PostError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /webauthn

Source

fn update_credential<'a, 'life0, 'async_trait>( &'life0 self, web_authn_login_credential_update_request_model: Option<WebAuthnLoginCredentialUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateCredentialError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

PUT /webauthn

Implementors§