Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Kiro IDE IAM Identity Center Login

Open ideacco opened this issue 8 months ago β€’ 8 comments

Before opening, please confirm:

Operating System

macOS 14.6.0

Kiro Version

0.11.107

Bug Description

Subject: Kiro IDE IAM Identity Center Login Failure - Unexpected InvalidRequestException

Hello Kiro Support Team,

I am experiencing an issue with Kiro IDE while attempting to log in using AWS IAM Identity Center (AWS SSO). Below is a detailed summary of the environment, steps, and observed behavior.


Environment:

  • OS: macOS 14.6.0
  • Kiro IDE Version: 0.11.107
  • AWS IAM Identity Center Start URL: https://d-9a6756eb00.awsapps.com/start
  • Region: us-east-2
  • CLI: kiro-cli works successfully with the same IAM Identity Center configuration

Problem Description:

  • When logging in via Kiro IDE, the browser opens the AWS IAM Identity Center login page as expected.
  • Authentication completes in the browser, which indicates that the login was successful, and the page shows the message "you may close this page."
  • However, Kiro IDE still reports a login failure and does not obtain a valid session.

Relevant IDE Logs:

2026-03-30 20:37:24.327 [info] PortalAuthServer: Listening on http://localhost:3128
2026-03-30 20:37:24.327 [info] PortalAuthProvider: Opening portal at https://app.kiro.dev/signin?...redirect_uri=http%3A%2F%2Flocalhost%3A3128...
2026-03-30 20:37:29.894 [info] PortalAuthServer: Received callback for login_option=awsidc
2026-03-30 20:37:30.959 [error] Authentication failed: SSOOIDC client: Unexpected InvalidRequestException

Observations:

  • The CLI (kiro-cli) can successfully log in with the same IAM Identity Center credentials.
  • The IDE launches the local callback server on http://localhost:3128 and receives the callback from the browser.
  • The failure occurs during the SSOOIDC token exchange step within the IDE.
  • The IDE also logs [EnterpriseSettingsManager] Non-enterprise mode, which may be relevant.

Steps Taken:

  1. Verified that CLI login with the same credentials works.
  2. Restarted Kiro IDE and cleared local cache (~/Library/Application Support/Kiro), preferences, and HTTP storage.
  3. Ensured the Start URL and Region in IDE match those in CLI.
  4. Disabled potential network interference (VPN, proxy) and retried login.

Conclusion:

  • The problem appears specific to Kiro IDE's handling of AWS IAM Identity Center login.
  • All AWS account, IAM Identity Center configuration, and subscription permissions are valid, as evidenced by successful CLI login.

Request:

  • Please investigate why Kiro IDE fails to complete SSOOIDC login with AWS IAM Identity Center.
  • Any guidance or a patch to allow IDE login using AWS IAM Identity Center would be greatly appreciated.

Thank you for your assistance.

Best regards, ken

Steps to Reproduce

Steps to Reproduce

  1. Install and open Kiro IDE.
  2. Select Sign in with AWS IAM Identity Center.
  3. Enter:
    • Start URL: [REDACTED]
    • Region: us-east-2
  4. Continue login in browser.
  5. Complete authentication successfully.
  6. Browser shows: "You may close this page".
  7. Return to Kiro IDE.
  8. Observe login failure.

Expected Behavior

Expected Behavior

  • IDE receives callback on http://localhost:3128
  • Exchanges auth code for token
  • User is logged in successfully
  • Behavior matches kiro-cli login

Conversation ID

No response

Additional Context

No response

ideacco avatar Mar 30 '26 13:03 ideacco

πŸ€– Potential Duplicate Detected

This issue appears to be similar to:

What happens next?

  • ⏰ This issue will be automatically closed in 3 days
  • 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with πŸ‘Ž to this message.
  • πŸ’¬ Comment on the original issue if you have additional information

Why is this marked as duplicate? Both issues deal with authentication problems in Kiro - the new issue reports IAM Identity Center login failure with SSOOIDC InvalidRequestException, while #5938 discusses headless/SIGV4 authentication issues in CI/CD environments. Both involve AWS authentication mechanisms failing in Kiro despite proper credentials.

github-actions[bot] avatar Mar 30 '26 13:03 github-actions[bot]

I have reviewed the issues you mentioned above, and I believe this problem is not related to those issues.

ideacco avatar Mar 30 '26 13:03 ideacco

Thank you for your feedback! πŸ™

The duplicate label has been removed and this issue has been sent back for maintainer review.

A maintainer will review this issue shortly.

github-actions[bot] avatar Mar 30 '26 13:03 github-actions[bot]

The http://localhost:3128 port is not occupied. I have also tried the following: 1. Enabling and completely disabling VPN 2. Re-authenticating IAM Identity Center in an incognito browser session 3. Reinstalling Kiro IDE

βΈ»

P.S. I am able to use Kiro CLI normally with the same account, which indicates that the issue is not related to the account itself.

ideacco avatar Mar 30 '26 13:03 ideacco

The http://localhost:3128 port is not occupied. I have also tried the following: 1. Enabling and completely disabling VPN 2. Re-authenticating IAM Identity Center in an incognito browser session 3. Reinstalling Kiro IDE

βΈ»

P.S. I am able to use Kiro CLI normally with the same account, which indicates that the issue is not related to the account itself.

do you mean that, with the same organization account, you can use Kiro CLI normally but cannot use Kiro IDE?

ddzzkk avatar Apr 07 '26 09:04 ddzzkk

Image

I'm having the same issue. I can log in normally in the browser, but I can't log in through Kiro IDE. Clicking "Continue to Sign In" doesn't work either.

zhanyirong avatar Apr 09 '26 08:04 zhanyirong

Hi! Thanks for reporting this. Several updates have shipped since this was filed (you were on version 0.11.x -- the latest is Kiro IDE 1.0.0 / CLI 2.8.1), and this area has seen significant fixes.

Could you update to the latest version and let us know if this is still happening?

  • Kiro IDE: update via the built-in updater or download from kiro.dev
  • Kiro CLI: npm install -g @anthropic-ai/kiro-cli or your package manager

If the issue persists, please share:

  1. Your current Kiro version
  2. Steps to reproduce
  3. Your Conversation ID

If we don't hear back within 7 days, we'll close this as resolved. Thanks! πŸ™

AnilMaktala avatar Jun 23 '26 19:06 AnilMaktala

This issue has been automatically closed due to inactivity. It has been 7 days since we requested additional information.

If you still need help with this issue, please feel free to reopen it or create a new issue with the requested details.

github-actions[bot] avatar Jul 01 '26 00:07 github-actions[bot]