[][src]Struct webauthn_rs::ephemeral::WebauthnEphemeralConfig

pub struct WebauthnEphemeralConfig { /* fields omitted */ }

An implementation of an Ephemeral (in-memory) webauthn configuration provider This stores all challenges and credentials in memory - IE they are lost on service restart. It's only really useful for demo-sites, testing and as an example/reference implementation of the WebauthnConfig trait.

IMPORTANT: DO NOT USE THIS IN PRODUCTION. YOU MUST IMPLEMENT YOUR OWN STRUCT DERIVING WebauthnConfig!!! This structure WILL be removed in a future release!

By default this implementation advertises support for all possible authenticators EVEN if they are NOT supported. This to is aid in test vector collection.

Implementations

impl WebauthnEphemeralConfig[src]

pub fn new(
    rp_name: &str,
    rp_origin: &str,
    rp_id: &str,
    attachment: Option<AuthenticatorAttachment>
) -> Self
[src]

Create a new Webauthn Ephemeral instance. This requires a provided relying party name, origin and id. See the trait documentation for more detail on relying party name, origin and id.

Trait Implementations

impl Debug for WebauthnEphemeralConfig[src]

impl WebauthnConfig for WebauthnEphemeralConfig[src]

fn get_relying_party_name(&self) -> String[src]

Returns the relying party name. See the trait documentation for more.

fn get_relying_party_id(&self) -> String[src]

Returns the relying party id. See the trait documentation for more.

fn get_origin(&self) -> &String[src]

Retrieve the relying party origin. See the trait documentation for more.

fn get_authenticator_attachment(&self) -> Option<AuthenticatorAttachment>[src]

Retrieve the authenticator attachment hint. See the trait documentation for more.

fn get_attestation_preference(&self) -> AttestationConveyancePreference[src]

Retrieve the authenticator attestation preference. See the trait documentation for more.

fn get_credential_algorithms(&self) -> Vec<COSEContentType>[src]

Retrieve the list of support algorithms.

WARNING: This returns all possible algorithms, not just SUPPORTED ones. This is so that

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.