passkey_types/webauthn/
well_known.rs

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