mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-28 21:15:33 +00:00
crazy refactor to start using holds embedded pds for crew/captain validation
This commit is contained in:
+4
-4
@@ -31,7 +31,7 @@ User approved Claude's plan:
|
||||
4. Create Profile Management
|
||||
|
||||
File: pkg/atproto/profile.go (new file)
|
||||
- EnsureProfile(ctx, client, defaultHoldEndpoint) function
|
||||
- EnsureProfile(ctx, client, defaultHoldDID) function
|
||||
- Logic: check if profile exists, create with default if not
|
||||
|
||||
5. Update Auth Handlers
|
||||
@@ -39,7 +39,7 @@ User approved Claude's plan:
|
||||
Files: pkg/auth/exchange/handler.go and pkg/auth/token/service.go
|
||||
- Call EnsureProfile() after token validation
|
||||
- Use authenticated client (has write access to user's PDS)
|
||||
- Pass AppView's default_hold_endpoint config
|
||||
- Pass AppView's default_hold_did config (format: "did:web:hold01.atcr.io")
|
||||
|
||||
6. Update Hold Resolution
|
||||
|
||||
@@ -89,8 +89,8 @@ Progress Summary
|
||||
5. Updated /auth/exchange handler to manage profile
|
||||
|
||||
⏳ In Progress:
|
||||
- Need to update /auth/token handler similarly (add defaultHoldEndpoint parameter and profile management)
|
||||
- Fix compilation error in extractDefaultHoldEndpoint() - should use configuration.Middleware type not any
|
||||
- Need to update /auth/token handler similarly (add defaultHoldDID parameter and profile management)
|
||||
- Fix compilation error in extractDefaultHoldDID() - should use configuration.Middleware type not any
|
||||
|
||||
🔜 Remaining:
|
||||
- Update findStorageEndpoint() for new priority logic (check profile → own hold → default)
|
||||
|
||||
Reference in New Issue
Block a user