Skip to content

test(account): passkey method.add takes its approval at the finish, naming the new credential id - #196

Merged
WillCybertron merged 1 commit into
mainfrom
test/passkey-method-add
Nov 12, 2026
Merged

WillCybertron merged 1 commit into
mainfrom
test/passkey-method-add

Conversation

@WillCybertron

Copy link
Copy Markdown
Contributor

Confirms the order the iOS lane uses to add a passkey sign-in method, with a test, and states it in the contract.

  • POST /v1/auth/passkey/options (mode register) needs the session only, no approval.
  • The finish is POST /v1/account/methods with proof: {challenge_id, response} and X-OE-Approval. The approval's method.add params name {type: passkey, subject}, where subject is the new credential id as in response.id.
  • Test (account/test/methods.test.ts): a finish without the approval is 428 approval_required; with an approval naming another credential, 403 approval_invalid; with the right one, 201 and the stored subject is that credential id. It fails if the subject binding is removed (checked by reverting it: 201 instead of 403).
  • account/openapi.yaml PasskeyProof describes the order, the 300 s window and why the response never goes to /v1/auth/passkey/verify.
  • The software authenticator moves from passkey.test.ts to test/helpers.ts so both tests use one copy.

No server behavior changes. account: 28 files, 195 tests; scripts/verify.sh green in the pre-push hook.

… at the finish, naming the new credential id

Register options need no approval. POST /v1/account/methods refuses a finish without the approval (428)
and one whose approval names another credential (403). The contract's PasskeyProof states the order.
The software authenticator moves to the shared test helpers.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-12T10:12:56.862727Z
We couldn’t complete this review. Comment @codex review to try again.
93bb23d PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@WillCybertron
WillCybertron merged commit 966d6c4 into main Nov 12, 2026
1 check passed
@WillCybertron
WillCybertron deleted the test/passkey-method-add branch November 12, 2026 10:18
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