mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-07-26 11:49:16 +00:00
5932bced36
- Extend WS upgrade handler to accept Authorization: Bearer tokens as a fallback to cookie auth. Remote Sencho instances receive proxied WS connections carrying Bearer (no cookie), so the previous cookie-only check caused immediate 401 rejections for all proxied log/terminal streams. - Log token validation failures in authMiddleware (was silently swallowed, violating no-empty-catch directive). - Normalize api_url by stripping trailing slashes in testRemoteConnection, the HTTP proxy target, and the WS proxy target to prevent double-slash URLs.