Skip to content

Conversation

@paolodamico
Copy link
Contributor

Stops storing the registration object in the serialized metadata. This reduces the surface area to only allow registration objects once.

webauthn_credential,
..
} => ExportedFactorKind::Passkey {
credential_id: serde_plain::to_string(webauthn_credential.cred_id())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sligthly confused by the comment below saying credential_id is base64 encoded, but this is not the case here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is base64 encoded, CredentialId is base64 encoded in its serialization implementation. We use serde_plain to explicitly use the existing serializing logic.

https://github.com/kanidm/webauthn-rs/blob/master/webauthn-rs-core/src/interface.rs#L244

@paolodamico paolodamico marked this pull request as draft September 6, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants