mirror of
https://github.com/jwadow/kiro-gateway.git
synced 2026-04-25 01:15:57 +03:00
[PR #22] [MERGED] fix(auth): reload SQLite credentials before AWS SSO OIDC token refresh #57
Labels
No labels
bug
bug
enhancement
enhancement
fixed
fixed
invalid
needs-info
needs-testing
pull-request
question
upstream
wontfix
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/kiro-gateway-jwadow#57
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jwadow/kiro-gateway/pull/22
Author: @kilhyeonjun
Created: 1/8/2026
Status: ✅ Merged
Merged: 1/8/2026
Merged by: @jwadow
Base:
main← Head:fix/reload-sqlite-before-refresh📝 Commits (1)
d1d89eefix(auth): reload SQLite credentials before AWS SSO OIDC token refresh📊 Changes
2 files changed (+107 additions, -1 deletions)
View changed files
📝
kiro_gateway/auth.py(+5 -0)📝
tests/unit/test_auth_manager.py(+102 -1)📄 Description
Problem
When kiro-cli refreshes tokens and updates the SQLite database, kiro-gateway continues using stale credentials from memory, causing 400 errors from AWS SSO OIDC endpoint.
Users had to manually restart the container after every
kiro login.Error Pattern
Solution
Reload credentials from SQLite at the beginning of
_refresh_token_aws_sso_oidc()to pick up fresh tokens after kiro-cli re-login.Changes
kiro_gateway/auth.py: Add SQLite reload before token refresh (4 lines)tests/unit/test_auth_manager.py: Add test for reload behaviorRelated
Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.