Skip to content

Login failure (OAuth callback broken) on macOS – localhost connection reset #6496

@Leonardomachad0

Description

@Leonardomachad0

Before opening, please confirm:

Operating System

macOS

Kiro Version

0.11.34

Bug Description

Hi,

I'm experiencing a persistent login issue with Kiro IDE on macOS.

The authentication flow starts normally:

  • I select login (Google / GitHub / any provider)
  • Browser opens successfully
  • Authentication completes on the provider side

However, the redirect back to localhost fails:

http://localhost:3128/oauth/callback

Error:

  • "Connection reset by peer"
  • Browser cannot load the localhost callback page

What I tested

  • Different browsers (Safari, Chrome)
  • Different login methods (Google, GitHub)
  • CLI install (kiro-cli) → same issue
  • DNS changed to Cloudflare (1.1.1.1)
  • Cleared DNS cache
  • Modified /etc/hosts to prioritize IPv4 (127.0.0.1)
  • Disabled IPv6 (::1 localhost removed)
  • Verified port 3128 is open:
    lsof -i :3128 → Kiro is listening
  • Tested with curl:
    curl http://127.0.0.1:3128 → connection reset

System info

  • macOS (MacBook Air)
  • Shell: zsh
  • No VPN active
  • Stable internet connection
  • Location: Brazil

Observation

The issue seems to be that:

  • Kiro opens the local server
  • but immediately closes the connection during OAuth callback

This makes login impossible via both UI and CLI.


Request

Could you please confirm if:

  • there is any known issue with OAuth callback handling on macOS?
  • or if additional configuration is required?

Thanks!

Image

Steps to Reproduce

  1. Open Kiro IDE on macOS
  2. Click "Sign In"
  3. Browser opens and authentication completes (Google/GitHub)
  4. Redirect to http://localhost:3128/oauth/callback
  5. Browser fails to load the page with connection error
  6. Kiro does not complete login

Expected Behavior

After successful authentication in the browser, Kiro should receive the OAuth callback and complete the login automatically.

Conversation ID

No response

Additional Context

  • Tested multiple browsers (Safari, Chrome)
  • Tested multiple login providers (Google, GitHub)
  • DNS changed to Cloudflare
  • IPv6 disabled
  • Port 3128 is open but connection resets
  • CLI login also fails

This appears to be an issue with the local OAuth callback server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-maintainer-responseIssue is pending a response from the Kiro teamquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions