crazy refactor to start using holds embedded pds for crew/captain validation

This commit is contained in:
Evan Jarrett
2025-10-16 00:05:45 -05:00
parent 08086e5afc
commit 70e802764b
30 changed files with 1530 additions and 368 deletions
+4 -4
View File
@@ -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)