-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description
Implement authentication to allow the owner to edit data via the Web UI while keeping the site publicly readable.
Dependencies
- Issue Web UI Foundation #3
Tasks
- Set up Auth.js (@auth/sveltekit)
- Configure GitHub OAuth provider
- Implement login/logout UI
- Add authorization check (owner-only write access)
- Protect API routes for write operations
Technology Selection
- Auth Library: Auth.js (@auth/sveltekit)
- OAuth Provider: GitHub
Authentication Flow
1. General users → View site (no auth required)
2. Owner → Click "Login" → GitHub OAuth → Authenticated
3. After auth → "Add" / "Edit" buttons appear in UI
4. On write → Call GitHub API with owner's token
Considerations
- Only the repository owner should have write access
- Public users should be able to browse without authentication
- Use environment variables for OAuth credentials
Deliverables
- Working GitHub OAuth integration
- Login/logout functionality
- Authorization-protected write operations
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels