Kiro IDE IAM Identity Center Login
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
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-cliworks 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:3128and 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:
- Verified that CLI login with the same credentials works.
- Restarted Kiro IDE and cleared local cache (
~/Library/Application Support/Kiro), preferences, and HTTP storage. - Ensured the Start URL and Region in IDE match those in CLI.
- 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
- Install and open Kiro IDE.
- Select Sign in with AWS IAM Identity Center.
- Enter:
- Start URL: [REDACTED]
- Region: us-east-2
- Continue login in browser.
- Complete authentication successfully.
- Browser shows: "You may close this page".
- Return to Kiro IDE.
- 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
π€ Potential Duplicate Detected
This issue appears to be similar to:
- #5938: Feature: Headless/SIGV4 authentication for kiro-cli-chat in CI/CD environments (85% similar)
- #5810: Streamline re-authentication flow when login tokens expire for Enterprise IAM Identity Center customers. (85% similar)
- #5475: Login issues when switching between IdC and Social sign ins (85% similar)
- #4681: can't login kiro (85% similar)
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.
I have reviewed the issues you mentioned above, and I believe this problem is not related to those issues.
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.
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.
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?
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.
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-clior your package manager
If the issue persists, please share:
- Your current Kiro version
- Steps to reproduce
- Your Conversation ID
If we don't hear back within 7 days, we'll close this as resolved. Thanks! π
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.