-
Aryan Noshirvani authored
Ports the same fix already tested and running on dev to main: - Removes the hardcoded plaintext admin/stax123 cookie-login flow and its fixed "valid_token_xyz" session-bypass cookie, replacing it with standard HTTP Basic Auth on /docs and /openapi.json, credentials from DOCS_USERNAME/DOCS_PASSWORD env vars (secrets.compare_digest). - Replaces stock Swagger UI with the custom branded console (dark/neon theme matching the Flutter app), minus the AI Remix panel - main doesn't have the /remix router, so that panel would just point at a 404. Kept the Tag & Identify panel (main's /music/upload is real) and the generic OpenAPI-driven endpoint explorer. Tested locally end-to-end before this commit: full test suite 21/21 green, and manually verified on a scratch port (401 with no credentials, 200 with correct ones, console renders without the remix panel, /openapi.json lists main's actual routes). Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BCxXmJVvDFJVHTUi4QgNzi
3c11a7b4
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| conftest.py | ||
| test_auth.py | ||
| test_discovery.py | ||
| test_library.py | ||
| test_music.py | ||
| test_social.py |