passkey-types 0.5.0

Rust type definitions for the webauthn and CTAP specifications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};
use url::Url;

/// The payload hosted by a relying party to augment their WebAuthn experience.
#[derive(Debug, Serialize, Deserialize)]
pub struct WellKnown {
    /// Should the relying party wish to re-use an rpId accross multiple origin domains
    /// that otherwise would not pass validation for a webauthn ceremony.
    ///
    /// To learn more please see refer to
    /// [WebAuthn level 3 - 5.11 Using Web Authentication across related origins][1]
    ///
    /// [1]: https://w3c.github.io/webauthn/#sctn-validating-relation-origin
    pub origins: Vec<Url>,
}