mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-23 15:42:12 +03:00
fix(oauth): keep the Kiro profileArn on IAM Identity Center logins (#10725)
Merged via merge-train (release/v3.8.50, batch1 2026-08-20) — static gates (typecheck/file-size/complexity/cognitive/changelog) green on the combined tree; test:unit reds observed in the boarded run were verified pre-existing on the pure release tip (unrelated flake), not caused by this PR. Thanks for the contribution!
This commit is contained in:
@@ -430,13 +430,17 @@ export default function OAuthModal({
|
||||
const verifyUrl = data.verification_uri_complete || data.verification_uri;
|
||||
if (typeof verifyUrl === "string" && verifyUrl) window.open(verifyUrl, "oauth_verify");
|
||||
|
||||
// Start polling - pass extraData for Kiro (contains _clientId, _clientSecret)
|
||||
// Start polling - pass extraData for Kiro (contains _clientId, _clientSecret).
|
||||
// _authMethod must be forwarded too: pollToken falls back to "builder-id" without it,
|
||||
// which makes postExchange skip the Q Developer profile lookup. An IdC connection then
|
||||
// gets persisted with no profileArn and every usage call returns 403.
|
||||
const extraData =
|
||||
provider === "kiro" || provider === "amazon-q"
|
||||
? {
|
||||
_clientId: data._clientId,
|
||||
_clientSecret: data._clientSecret,
|
||||
_region: data._region,
|
||||
_authMethod: data._authMethod,
|
||||
}
|
||||
: provider === "ghe-copilot" && gheUrl.trim()
|
||||
? { gheUrl: gheUrl.trim() }
|
||||
|
||||
Reference in New Issue
Block a user