Commit Graph
9 Commits
Author SHA1 Message Date
john-okeefe b941776677 docs: add comprehensive device authentication implementation details
- Add IMPLEMENTATION_EXACT.md with exact code changes for all phases
- Update IMPLEMENTATION_PLAN.md with clarifications on two-field approach:
  - device_identifier: Serial number (Kobo) or UUID (KOReader)
  - auth_token: Auto-generated API key for authentication
- Resolve all user questions with  marked decisions
- Add verification steps for documentation accuracy
- Document Kobo vs KOReader registration workflow differences
- Add SQL query for token regeneration (UpdateDeviceAuthToken)
- Include TypeScript device management code
- Add Bruno API test files for all new endpoints
- Update Kobo setup documentation for URL path token approach
2026-02-12 15:36:18 -05:00
john-okeefe 1db89669fb docs: add device_identifier investigation to implementation plan
- Add Section 16.1: Codebase investigation results
- Document that device_identifier was added in Phase 1 (commit 3b2075f)
- Clarify it's for device management, not authentication
- Show active usage in device registration (line 37: validate:"required,min=1,max=255")
- Identify dead code: GetDeviceByIdentifier query exists but not called
- Confirm OPDS uses device.id for lookup (not device_identifier)
- Distinguish authentication (auth_token) from device identification (device_identifier)
2026-02-12 11:17:46 -05:00
john-okeefe 1117c0a02f docs: remove duplicate middleware code block from implementation plan
- Remove duplicate Go code block in Section 9.6 (line 676)
- Keep canonical version in Section 14.2 (line 1081)
- Eliminates ~25 lines of duplicate content
- Plan now has single source of truth for middleware implementation
2026-02-12 11:11:26 -05:00
john-okeefe 51c39f94cf docs: add documentation update checklist to implementation plan
- Add Section 16: Documentation Updates Required
- Detail specific line numbers and changes for koreader-setup.md:
  - Line 126: Change "Basic Auth" to "Bearer Token"
  - Lines 127-128: Remove username/password references
- Detail verification needed for kobo-setup.md:
  - Lines 37-53: Confirm no serial number references
  - Verify registration flow describes automatic token generation
- Update Phase 1 tasks with specific line number references
- Update Phase 2 Kobo documentation tasks with verification notes
2026-02-12 10:58:39 -05:00
john-okeefe 249085d942 docs: update implementation plan with API key authentication strategy
- Replace serial number approach with API key in URL path for Kobo
- Add authentication strategy section documenting Kobo and KOReader methods
- Update unified authentication architecture to support URL path parameters
- Document Komga-proven approach for stock Kobo firmware
- Update feature matrix with new authentication methods
- Revise user flows for API key-based registration
- Clarify OPDS security (already using DeviceAuthMiddleware)
- Update security considerations to reflect revocable API keys
2026-02-12 10:52:50 -05:00
john-okeefe b1345e1ad7 docs: add critical modifications section to implementation plan
- Section 14: Critical Modifications Required
  - Missing GetDeviceByDeviceIdentifier query requirement
  - Incorrect Kobo documentation (wrong auth mechanism)
  - OPDS authentication inconsistency (needs dual header/URL fallback)
  - Enhanced security documentation requirements

- Section 15: Updated success criteria
  - Database query requirements
  - Documentation accuracy requirements
  - Dual authentication support

These modifications address blockers identified during codebase review
before implementation begins.
2026-02-11 21:03:39 -05:00
john-okeefe 15642f7feb docs: add comprehensive device authentication implementation plan
Add detailed implementation plan covering:
- Enhanced authentication middleware (Bearer + serial)
- Kobo native sync with serial-based auth
- KOReader plugin development plan
- OPDS security hardening
- Parallel implementation tracks
- Complete historical context and decision rationale

This plan documents the strategy to transform Bookhoard into a
Kindle-replacement ecosystem with full sync support for both
Kobo (native) and KOReader (via plugin) devices.

Key decisions:
- Kobo: Serial number authentication (simplest UX)
- KOReader: Bearer token via plugin (most secure)
- Plugin: Separate repository under Bookhoard org
- Implementation: Parallel tracks for faster delivery
2026-02-11 20:54:01 -05:00
john-okeefe a2b26e68c5 chore: remove obsolete implementation plan documents 2026-02-01 13:21:39 -05:00
john-okeefe 33f26f3d7d docs: add implementation plan and update documentation
- Add comprehensive implementation plan for universal sync system
- Update README with API reference and device setup guides
- Add KOBO_SETUP.md device configuration guide
2026-01-31 18:25:27 -05:00