5 Commits

Author SHA1 Message Date
a3651e0e47 fix: load configuration from config.json and fix authentication
- Load anime_directory and master_password_hash from config.json on startup
- Sync configuration from config.json to settings object in fastapi_app.py
- Update dependencies.py to load config from JSON if not in environment
- Fix app.js to use makeAuthenticatedRequest() for all authenticated API calls
- Fix API endpoint paths from /api/v1/anime to /api/anime
- Update auth_service.py to load master_password_hash from config.json
- Update auth.py setup endpoint to save master_password_hash to config
- Fix rate limiting code to satisfy type checker
- Update config.json with test master password hash

Fixes:
- 401 Unauthorized errors on /api/anime endpoint
- 503 Service Unavailable errors on /api/anime/process/locks
- Configuration not being loaded from config.json file
- Authentication flow now works end-to-end with JWT tokens
2025-10-24 20:55:10 +02:00
ffb182e3ba cleanup 2025-10-23 19:41:24 +02:00
9a64ca5b01 cleanup 2025-10-23 18:10:34 +02:00
4eede0c8c0 better time usings 2025-10-22 08:14:42 +02:00
aec6357dcb feat(auth): add AuthService with JWT, lockout and tests 2025-10-13 00:03:02 +02:00