pub struct Passkey { /* private fields */ }Expand description
The passkey plugin: .plugin(Passkey::new()).
The relying party defaults to the app: its ID is base_url’s host, its name the app name,
and ceremonies may come from base_url’s origin or any exact (wildcard-free) trusted
origin. Passkeys always require user verification (a PIN or biometric), as webauthn-rs
does for passkeys.
Implementations§
Source§impl Passkey
impl Passkey
pub fn new() -> Self
Sourcepub fn rp_id(self, rp_id: impl Into<String>) -> Self
pub fn rp_id(self, rp_id: impl Into<String>) -> Self
The relying party ID passkeys are bound to: a domain, e.g. acme.dk to share
passkeys between acme.dk and app.acme.dk. Default: base_url’s host.
Trait Implementations§
Source§impl Plugin for Passkey
impl Plugin for Passkey
Source§const ID: &'static str = "passkey"
const ID: &'static str = "passkey"
Unique id, used in error messages, schema ownership and derived keys.
Source§type Requires = ()
type Requires = ()
Plugins that must be registered before this one, as a tuple:
(), (Organization,).Source§type UserFields = ()
type UserFields = ()
Columns this plugin adds to
user; () for none.Source§type SessionFields = ()
type SessionFields = ()
Columns this plugin adds to
session; () for none.Source§fn schema(&self, schema: &mut SchemaBuilder)
fn schema(&self, schema: &mut SchemaBuilder)
Adds tables (
schema.model::<M>()) or columns. UserFields and SessionFields are
added automatically.Auto Trait Implementations§
impl Forget for Passkey
impl Freeze for Passkey
impl Move for Passkey
impl RefUnwindSafe for Passkey
impl Send for Passkey
impl Sync for Passkey
impl Unpin for Passkey
impl UnsafeUnpin for Passkey
impl UnwindSafe for Passkey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more