[BUG] Claude Agent OAuth sign-in fails in Xcode 26.3 for Enterprise SSO — browser completes but Xcode never receives callback

Status Closed — not planned
Reported on v2.1.77
Maintainer reply None cached
Activity 10 comments · opened Mar 26, 2026 · closed Jun 5, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Claude Agent OAuth sign-in in Xcode 26.3 fails for Enterprise SSO accounts. The OAuth flow completes successfully in the browser (shows "Build something great. You're all set up for Claude Code"), but the callback never reaches Xcode. The spinner continues indefinitely.
Related to #10237 (now closed), issue remains unresolved.
Environment:

macOS 26.2 (Tahoe), Apple Silicon M4
Xcode 26.3
Claude Enterprise plan with SSO

What works:

Claude Sonnet 4 chat in Xcode (same account) ✅
Claude Code CLI in Terminal (same credentials) ✅

What doesn't work:

Claude Agent OAuth — callback never reaches Xcode ❌
Default workspace API key — rejected ❌

What Should Happen?

After completing OAuth in the browser, Xcode should receive the callback and authenticate Claude Agent. The Agent should work the same way Claude Sonnet 4 chat already works in Xcode with the same Enterprise account.

Error Messages/Logs

No error message displayed — Xcode shows an infinite spinner. Browser shows successful authentication ("Build something great. You're all set up for Claude Code.")

Steps to Reproduce

  • Open Xcode 26.3 → Settings → Intelligence → Anthropic
  • Click "Get" for Claude Agent (if not already installed)
  • Click sign in with Claude.ai account (Enterprise SSO)
  • Browser opens, complete SSO authentication
  • Browser shows "Build something great. You're all set up for Claude Code."
  • Return to Xcode — spinner continues indefinitely, sign-in never completes

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.77 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

10 Comments

github-actions[bot] · 5 months ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/10237

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

sunitad0ra · 5 months ago

This is not a duplicate of #10237. That issue was closed without resolution — the bug still exists. Enterprise SSO OAuth for Claude Agent in Xcode 26.3 remains broken. The browser completes authentication successfully but the callback never reaches Xcode.
Please reopen #10237 or keep this issue open. This is actively blocking Enterprise users from using Claude Agent in Xcode.

FlorinDMass · 4 months ago

I can confirm that is not working on my side too.
Installed also latest Xcode Version 26.4 (17E192) same issue.
Also tried with keychain unlocked... nothing.

The difference in Xcode 26.4 seems that the callback reaches the App because the loader now stops spinning but after says : "Not Signed In".
Claude Code CLI works just fine.

nProdanov · 4 months ago

Experience the same issue. I am not sure how I can ensure the callback reached the Xcode, but on browser it says "Authorized. You can close this window"
In Xcode stucks in Loading state

davidoldenburgerabb · 4 months ago

Also have the same issue, on 26.3 and 26.4. Tried with multiple Claude licenses (personal max & team).

jeremylatrasse · 3 months ago

I found this workaround to work for me.

  1. Go to Safari > Settings (or Cmd + ,).
  2. Click on the Security tab.
  3. Look for "Warn before connecting to a website over HTTP" or "Non-secure site connections."
  4. Uncheck that box.
github-actions[bot] · 2 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

gauravagnihotri · 2 months ago

Still broken

dec5-tech · 2 months ago

still broken

github-actions[bot] · 6 days ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.