Skip to content

Validate client credential shape before decoding - #508

Open
OskarEichler wants to merge 5 commits into
cedarcode:masterfrom
OskarEichler:audit/validate-client-credential-shape
Open

Validate client credential shape before decoding#508
OskarEichler wants to merge 5 commits into
cedarcode:masterfrom
OskarEichler:audit/validate-client-credential-shape

Conversation

@OskarEichler

Copy link
Copy Markdown
Contributor

Partially addresses #497 by validating the outer credential and required response fields before decoding. Malformed browser payloads now raise WebAuthn::CredentialFormatError instead of incidental NoMethodError or TypeError failures. String-like values remain accepted for the encoding: false path. Verified with six malformed shapes, the full 502-example suite, RuboCop, and syntax checks on Ruby 4.0 and Ruby 3.2.11.

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.

1 participant