XcodesOrg / XcodesOrg/xcodes

Invalid HTTP response (412) after entering 2FA code

Open
#291 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
4.8k
Forks
182
Avg merge
2d 12h
Merged PRs (30d)
1

Description

Installed via brew and wanted to install xcode 14.3, but after entering Apple ID and PW, when I enter the 2 FA code, the I get this error (twice):

Invalid HTTP response (412) for https://idmsa.apple.com/appleauth/auth/verify/trusteddevice/securitycode.

I also tried SMS, but it's the same behavior 😞

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure in the Homebrew-installed CLI after submitting a 2FA code, then trace handling of the Apple authentication endpoint shown in the report: https://idmsa.apple.com/appleauth/auth/verify/trusteddevice/securitycode. Done means identifying and resolving the HTTP 412 behavior for both trusted-device and SMS verification, with a regression check if the project has an applicable test.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, swift
Domain
authentication, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.