pub struct RegistryAuthStore { /* private fields */ }Implementations§
Source§impl RegistryAuthStore
impl RegistryAuthStore
pub fn open(root: &Path) -> PrayResult<Self>
pub fn register_email( &self, email: &str, policy: EmailConfirmationPolicy, ) -> PrayResult<AuthRegistrationResponse>
pub fn verify_email( &self, email: &str, code: &str, ) -> PrayResult<AuthVerificationResponse>
pub fn user_verified(&self, email: &str) -> PrayResult<bool>
pub fn request_passkey_challenge( &self, credential_id: &str, ) -> PrayResult<AuthPasskeyChallengeResponse>
pub fn respond_passkey_challenge( &self, credential_id: &str, challenge_id: &str, signature: &str, ) -> PrayResult<AuthPasskeyLoginResponse>
pub fn request_ssh_key_challenge( &self, public_key: &str, ) -> PrayResult<AuthSshKeyChallengeResponse>
pub fn respond_ssh_key_challenge( &self, public_key: &str, challenge_id: &str, signature: &str, ) -> PrayResult<AuthSshKeyLoginResponse>
pub fn issue_session( &self, email: &str, kind: AuthSessionKind, ) -> PrayResult<AuthSessionResponse>
pub fn resolve_session( &self, token: &str, ) -> PrayResult<Option<AuthSessionResponse>>
pub fn enroll_passkey( &self, email: &str, credential_id: &str, public_key: &str, label: Option<&str>, ) -> PrayResult<AuthPasskeyEnrollmentResponse>
pub fn login_with_passkey( &self, credential_id: &str, ) -> PrayResult<AuthPasskeyLoginResponse>
pub fn enroll_ssh_key( &self, email: &str, public_key: &str, label: Option<&str>, ) -> PrayResult<AuthSshKeyEnrollmentResponse>
pub fn login_with_ssh_key( &self, public_key: &str, ) -> PrayResult<AuthSshKeyLoginResponse>
Trait Implementations§
Source§impl Clone for RegistryAuthStore
impl Clone for RegistryAuthStore
Source§fn clone(&self) -> RegistryAuthStore
fn clone(&self) -> RegistryAuthStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RegistryAuthStore
impl RefUnwindSafe for RegistryAuthStore
impl Send for RegistryAuthStore
impl Sync for RegistryAuthStore
impl Unpin for RegistryAuthStore
impl UnsafeUnpin for RegistryAuthStore
impl UnwindSafe for RegistryAuthStore
Blanket Implementations§
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