pub struct GenerateRegisterOptions(/* private fields */);Expand description
GET /passkey/generate-register-options: the PublicKeyCredentialCreationOptions to
pass to navigator.credentials.create(). Needs a fresh session, read again from the
database (Ctx::sensitive_session), so API-key and impersonation sessions can’t
register passkeys. The user’s passkeys are excluded, so an authenticator can’t register
twice.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for GenerateRegisterOptions
impl<D: Adapter> Endpoint<D> for GenerateRegisterOptions
const METHOD: Method = Method::GET
const PATH: &'static str = "/passkey/generate-register-options"
type Access = Fresh
type Input = GenerateRegisterOptionsInput
type Output = PublicKeyCredentialCreationOptions
async fn call( &self, ctx: Ctx<D, Fresh>, input: GenerateRegisterOptionsInput, ) -> Result<PublicKeyCredentialCreationOptions, AuthError>
Auto Trait Implementations§
impl Forget for GenerateRegisterOptions
impl Freeze for GenerateRegisterOptions
impl Move for GenerateRegisterOptions
impl RefUnwindSafe for GenerateRegisterOptions
impl Send for GenerateRegisterOptions
impl Sync for GenerateRegisterOptions
impl Unpin for GenerateRegisterOptions
impl UnsafeUnpin for GenerateRegisterOptions
impl UnwindSafe for GenerateRegisterOptions
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