Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Kiro IDE Linux OAuth deep-link handling bug

Open versona-tech opened this issue 11 months ago • 6 comments

Before opening, please confirm:

Operating System

Linux

Kiro Version

0.8.0

Bug Description

Description: On Fedora (and other Linux distributions), after clicking “Sign in with Google”, Kiro opens the browser correctly, and authentication completes, but the application remains stuck on:

“We will take you to your default web browser to sign in and bring you back when it's complete…”

The browser redirects to: kiro://kiro.kiroAgent/authenticate-success but Kiro IDE does not process the callback and remains on the sign-in screen.

Steps:

  1. Launch Kiro IDE 0.8.0 on Linux
  2. Choose Google sign-in
  3. Browser opens and login succeeds
  4. Browser tries to redirect with custom URI
  5. Kiro fails to handle the deep-link callback

Expected: The app should capture the callback and complete login.

Actual: App remains stuck with the waiting message.

Environment: Fedora GNU/Linux, default browser Firefox/Chrome x-scheme-handler/kiro registered correctly (confirmed via xdg-mime)

This appears to be a deep-link handling bug specific to the Linux build.

Please advise on a fix or ETA for addressing this OAuth callback issue.

End

Steps to Reproduce

Steps:

  1. Launch Kiro IDE 0.8.0 on Linux
  2. Choose Google sign-in
  3. Browser opens and login succeeds
  4. Browser tries to redirect with custom URI
  5. Kiro fails to handle the deep-link callback

Expected Behavior

Expected: The app should capture the callback and complete login.

Actual: App remains stuck with the waiting message.

Environment: Fedora GNU/Linux, default browser Firefox/Chrome x-scheme-handler/kiro registered correctly (confirmed via xdg-mime)

This appears to be a deep-link handling bug specific to the Linux build.

Conversation ID

No response

Additional Context

No response

versona-tech avatar Dec 25 '25 09:12 versona-tech

I am facing this issue as well. Please help fix this. Was working fine all this while and suddenly the login flow is broken

Scarface3090 avatar Dec 26 '25 06:12 Scarface3090

Same problem, Github or Google login not working. The logs show that it gets a successful xdg-open call, but it doesn't move on. I can log in with my AWS Builder ID, but my subscription doesn't show up.

It doesn't matter if I'm using the AUR version or the downloaded version. The first occurrence of the problem cannot be related to a program update. It occurred within 24 hours of subscribing to my pro membership. I don't know if it's related.

kzolti avatar Dec 26 '25 19:12 kzolti

+1 to this issue, I am working on creating a vscode extension which has a callback from AWS service post authentication, but it fails to get the callback(On vscode it works perfectly)

kulsarve avatar Dec 29 '25 04:12 kulsarve

Same here. Google login and redirect callback fails.

yogenpoonudurai avatar Jan 03 '26 07:01 yogenpoonudurai

If anyone using the tar.gz files, here's the workaround. the system is likey missing the protocal handler.

Here's how to fix it:

  1. Create a desktop entry so your browser knows to send the token back to the Kiro app. Run the following in your terminal:

Bash

nano ~/.local/share/applications/kiro.desktop

Paste this and replace /YOUR/PATH/TO/kiro with the actual path

[Desktop Entry]
Type=Application
Name=Kiro
Exec=/YOUR/PATH/TO/kiro --open-url %u
MimeType=x-scheme-handler/kiro;
NoDisplay=true
Terminal=false

Bash

Update the mime database

xdg-mime default kiro.desktop x-scheme-handler/kiro
update-desktop-database ~/.local/share/applications/

Image

yogenpoonudurai avatar Jan 03 '26 07:01 yogenpoonudurai

Hi, this Linux OAuth deep-link issue has been addressed. CLI 2.1 (Apr 24, 2026) introduced Device Flow authentication which works on all Linux environments without requiring the kiro: URI scheme or browser deep-linking.

Run kiro-cli login and it will display a URL + one-time code you can enter in any browser. See: https://kiro.dev/docs/cli/authentication/#device-flow-recommended

For the IDE, subsequent releases (0.9+) also improved OAuth handling. If you're still experiencing issues on the latest version, please open a new issue.

Closing as resolved.

AnilMaktala avatar May 21 '26 12:05 AnilMaktala