pub struct RegistrationResult {
pub credential_id: String,
pub device_name: String,
pub attestation_format: String,
pub attestation: AttestationResult,
pub user_verified: bool,
}Expand description
Result of a successful registration.
The caller is responsible for persisting a WebauthnCredential built
from the verified credential ID and COSE public key extracted from the
authenticator data.
Fields§
§credential_id: StringThe credential ID that was registered (Base64url-encoded).
device_name: StringDevice name (from client or auto-generated).
attestation_format: StringRaw attestation format string from the attestation object (e.g. “none”, “packed”, “fido-u2f”).
attestation: AttestationResultVerified attestation details (format, AAGUID, trust level, warnings).
§Security note
Only crate::attestation::TrustLevel::AttCa (a chain terminating
at a configured trust anchor) attests device provenance;
crate::attestation::TrustLevel::BasicAtt and
crate::attestation::TrustLevel::SelfAttested establish key
possession only. Inspect crate::attestation::AttestationResult::warnings
for trust-weakening flags.
user_verified: boolWhether user verification was performed.