Expand description
Parsing and validation of clientDataJSON.
clientDataJSON is a JSON object produced by the browser that binds a
WebAuthn ceremony to a specific type, challenge, and origin. The relying
party must verify all three fields before accepting any ceremony.
This module separates parsing from validation so that error messages can name the exact failing field (type mismatch vs challenge mismatch vs origin mismatch) rather than a generic “invalid client data”.
Structs§
- Parsed
Client Data - Decoded and structured
clientDataJSONready for validation.
Functions§
- parse_
client_ data - Decode and parse raw
clientDataJSONbytes. - validate_
client_ data - Validate the parsed client data against the expected ceremony parameters.