feat: add Kiro OAuth login support

- Add Kiro OAuth card to OAuthPage with AWS Builder ID and IDC login
- Support refreshToken import from Kiro IDE
- Add kiro.svg icon
- Add i18n translations for zh-CN and en
This commit is contained in:
Lany798
2026-02-02 22:43:26 +08:00
parent 8513bd4186
commit a61893d102
4 changed files with 198 additions and 2 deletions

View File

@@ -675,7 +675,26 @@
"iflow_cookie_result_expired": "Expires At",
"iflow_cookie_result_path": "Saved Path",
"iflow_cookie_result_type": "Type",
"remote_access_disabled": "This login method is not available for remote access. Please access from localhost."
"remote_access_disabled": "This login method is not available for remote access. Please access from localhost.",
"kiro_oauth_title": "Kiro OAuth",
"kiro_oauth_hint": "Login to Kiro service via AWS SSO, supporting Builder ID and Identity Center (IDC), or import refreshToken from Kiro IDE directly.",
"kiro_builder_id_label": "AWS Builder ID Login",
"kiro_builder_id_hint": "Login with AWS Builder ID account, suitable for individual developers.",
"kiro_builder_id_button": "Login with Builder ID",
"kiro_idc_label": "AWS Identity Center (IDC) Login",
"kiro_idc_hint": "Login with enterprise AWS Identity Center, requires Start URL and Region.",
"kiro_idc_start_url_label": "Start URL",
"kiro_idc_start_url_placeholder": "https://your-org.awsapps.com/start",
"kiro_idc_region_label": "Region (Optional)",
"kiro_idc_region_placeholder": "us-east-1",
"kiro_idc_button": "Login with IDC",
"kiro_token_import_label": "Token Import",
"kiro_token_import_hint": "Import refreshToken from Kiro IDE, can be found in Kiro IDE's auth file.",
"kiro_token_placeholder": "Paste refreshToken",
"kiro_token_import_button": "Import Token",
"kiro_token_required": "Please enter refreshToken first",
"kiro_token_import_success": "Kiro Token imported successfully",
"kiro_token_import_error": "Kiro Token import failed:"
},
"usage_stats": {
"title": "Usage Statistics",