pub struct AuthenticationCredential {
pub credential_id: String,
pub authenticator_data: String,
pub client_data_json: String,
pub signature: String,
pub user_handle: Option<String>,
pub client_extension_results: Option<ClientExtensionResults>,
pub authenticator_attachment: Option<AuthenticatorAttachment>,
}Expand description
What the client sends back after navigator.credentials.get().
Fields§
§credential_id: StringThe credential ID that was used (base64url-encoded).
authenticator_data: StringThe authenticator data (base64url-encoded).
client_data_json: StringThe client data JSON (base64url-encoded).
signature: StringThe signature over the authenticator data and client data hash (base64url-encoded).
user_handle: Option<String>The user_id from registration, base64url-encoded. Only returned for
discoverable credentials, where it is how the server learns who is
logging in.
client_extension_results: Option<ClientExtensionResults>Extension results from the client (e.g., PRF outputs).
authenticator_attachment: Option<AuthenticatorAttachment>Whether the client used a built-in or a separate authenticator. A
credential registered as Platform reporting CrossPlatform here was
used from another device. None when the client did not report.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthenticationCredential
impl<'de> Deserialize<'de> for AuthenticationCredential
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthenticationCredential
impl RefUnwindSafe for AuthenticationCredential
impl Send for AuthenticationCredential
impl Sync for AuthenticationCredential
impl Unpin for AuthenticationCredential
impl UnsafeUnpin for AuthenticationCredential
impl UnwindSafe for AuthenticationCredential
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