mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-20 09:14:16 +00:00
try and fix bad oauth cache
This commit is contained in:
@@ -211,7 +211,7 @@ These components are essential to registry operation and still need coverage.
|
||||
|
||||
OAuth implementation has test files but many functions remain untested.
|
||||
|
||||
#### refresher.go (Partial coverage)
|
||||
#### client.go - Session Management (Refresher) (Partial coverage)
|
||||
|
||||
**Well-covered:**
|
||||
- `NewRefresher()` - 100% ✅
|
||||
@@ -227,6 +227,8 @@ OAuth implementation has test files but many functions remain untested.
|
||||
- Session retrieval and caching
|
||||
- Token refresh flow
|
||||
- Concurrent refresh handling (per-DID locking)
|
||||
|
||||
**Note:** Refresher functionality merged into client.go (previously separate refresher.go file)
|
||||
- Cache expiration
|
||||
- Error handling for failed refreshes
|
||||
|
||||
@@ -509,8 +511,9 @@ UI initialization and setup. Low priority.
|
||||
**In Progress:**
|
||||
9. 🔴 `pkg/appview/db/*` - Database layer (41.2%, needs improvement)
|
||||
- queries.go, session_store.go, device_store.go
|
||||
10. 🔴 `pkg/auth/oauth/refresher.go` - Token refresh (Partial → 70%+)
|
||||
10. 🔴 `pkg/auth/oauth/client.go` - Session management (Refresher) (Partial → 70%+)
|
||||
- `GetSession()`, `resumeSession()` (currently 0%)
|
||||
- Note: Refresher merged into client.go
|
||||
11. 🔴 `pkg/auth/oauth/server.go` - OAuth endpoints (50.7%, continue improvements)
|
||||
- `ServeCallback()` at 16.3% needs major improvement
|
||||
12. 🔴 `pkg/appview/storage/crew.go` - Crew validation (11.1% → 80%+)
|
||||
|
||||
Reference in New Issue
Block a user