pub struct RegistryAuthStore { /* private fields */ }Implementations§
Source§impl RegistryAuthStore
impl RegistryAuthStore
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 enroll_passkey( &self, email: &str, credential_id: &str, public_key: &str, label: Option<&str>, ) -> PrayResult<AuthPasskeyEnrollmentResponse>
pub fn enroll_ssh_key( &self, email: &str, public_key: &str, label: Option<&str>, ) -> PrayResult<AuthSshKeyEnrollmentResponse>
Source§impl RegistryAuthStore
impl RegistryAuthStore
pub fn ensure_publish_tokens_table(&self) -> PrayResult<()>
pub fn issue_publish_token( &self, email: &str, scopes: &[String], ) -> PrayResult<PublishTokenRecord>
pub fn resolve_publish_token( &self, token: &str, ) -> PrayResult<Option<PublishTokenRecord>>
pub fn revoke_publish_token(&self, token: &str) -> PrayResult<()>
Source§impl RegistryAuthStore
impl RegistryAuthStore
pub fn verify_email( &self, email: &str, code: &str, ) -> PrayResult<AuthVerificationResponse>
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 user_verified(&self, email: &str) -> PrayResult<bool>
pub fn issue_session( &self, email: &str, kind: AuthSessionKind, ) -> PrayResult<AuthSessionResponse>
pub fn resolve_session( &self, token: &str, ) -> PrayResult<Option<AuthSessionResponse>>
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