cyberpanel/aiScanner
usmannasir cfeac42527 Add X-API-Key header support for AI Scanner file operations
- Added extract_auth_token() function to handle both Bearer and X-API-Key authentication
- Updated all file operation endpoints to support X-API-Key headers:
  - list_files()
  - get_file_content()
  - scanner_backup_file()
  - scanner_get_file()
  - scanner_replace_file()
  - scanner_rename_file()
  - scanner_delete_file()
- Maintains backward compatibility with existing Bearer token authentication
- Added test script to verify both authentication methods work correctly
- Enables permanent API key authentication for file fixes (no more expired token issues)

This change allows the platform to fix files using the permanent CyberPanel API key
instead of temporary file access tokens that expire after ~1 hour.
2025-10-27 13:29:30 +05:00
..
management Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
migrations add aiscanner file patcher 2025-10-26 01:56:36 +05:00
templates/aiScanner enable dark mode 2025-08-05 01:47:22 +05:00
__init__.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
admin.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
aiScannerManager.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
api.py Add X-API-Key header support for AI Scanner file operations 2025-10-27 13:29:30 +05:00
apps.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
models.py add aiscanner file patcher 2025-10-26 01:56:36 +05:00
scheduled_views.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
status_api.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
status_models.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
tests.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
urls.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00
views.py Initial commit for v2.4.3 2025-08-01 14:56:30 +05:00