Skip to content

docs: add WebAuthn fixtures how-to#592

Merged
EffortlessSteven merged 1 commit into
mainfrom
docs/howto-webauthn
May 12, 2026
Merged

docs: add WebAuthn fixtures how-to#592
EffortlessSteven merged 1 commit into
mainfrom
docs/howto-webauthn

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Pure docs PR. Task-first how-to for WebAuthn ceremony validation. Part of the Phase 4 task-first user-paths sweep.

File added

  • docs/how-to/test-webauthn-validation.md — how-to that walks a downstream WebAuthn validator through generating RegistrationFixture / AssertionFixture from uselesskey-webauthn, what each component (client_data_json, authenticator_data, attestation_object, COSE EC2 credential public key, signature, sign_count, aaguid) contains, how to verify the ceremony, and how to test failure paths (wrong RP ID, wrong origin, wrong challenge, tampered authenticator data, replayed sign count). Closes the same shape as the OIDC and TLS how-tos: positive path, negative paths, what this proves, what this does not prove, scanner-safety boundary.

Notes

  • Code snippets match the actual WebAuthnFactoryExt surface (webauthn_registration / webauthn_assertion) and WebAuthnSpec::packed constructor — verified against crates/uselesskey-webauthn/src/lib.rs.
  • Honest about the fixture boundary: the attStmt.sig and AssertionFixture.signature are SHA-256 digests, not ECDSA signatures, and there is no real attestation trust path.
  • No CHANGELOG update.

Task-first how-to for WebAuthn ceremony validation using
uselesskey-webauthn's deterministic registration and assertion
fixtures. Mirrors the structure of test-oidc-jwks-validation.md
and test-tls-chain-validation.md (positive path + negative paths
+ what-this-does-not-prove + scanner-safety boundary).
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented May 12, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@EffortlessSteven has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 7 minutes and 3 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 3bd75cee-cca4-44dc-80e5-9f136df0a7b0

📥 Commits

Reviewing files that changed from the base of the PR and between e1f2f0a and 9416805.

📒 Files selected for processing (1)
  • docs/how-to/test-webauthn-validation.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/howto-webauthn

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9416805ee6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +89 to +90
bytes the validator hashed (`authenticator_data ||
sha256(client_data_json)`).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Correct signature input to raw clientDataJSON

For these fixtures the assertion signature is generated over the raw client_data_json, not sha256(client_data_json): build_assertion concatenates auth_data.as_slice() with client_data_json.as_slice() before calling mock_signature. Users following this step will hash the client data first and either reject every valid AssertionFixture or write tests against bytes the crate never produces.

Useful? React with 👍 / 👎.

@EffortlessSteven EffortlessSteven merged commit 7edf7ed into main May 12, 2026
5 checks passed
@EffortlessSteven EffortlessSteven mentioned this pull request May 12, 2026
4 tasks
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