Skip to content

v1.2.0 — Dashboard Session Auth for Models Endpoint

Choose a tag to compare

@diegosouzapw diegosouzapw released this 22 Feb 21:37
· 11749 commits to release/v3.8.53 since this release

✨ Feature Release — Dashboard Session Auth for Models Endpoint

Dashboard users can now access /v1/models via their existing session when API key auth is required.

✨ New Features

  • JWT Session Auth Fallback — When requireAuthForModels is enabled, the /v1/models endpoint now accepts both API key (Bearer token) for external clients and the dashboard JWT session cookie (auth_token), allowing logged-in dashboard users to view models without needing an explicit API key (PR #110 by @nyatoru)

🔧 Improvements

  • 401 instead of 404 — Authentication failures on /v1/models now return 401 Unauthorized with a structured JSON error body (OpenAI-compatible format) instead of a generic 404 Not Found
  • Simplified auth logic — Refactored the JWT cookie verification, removing redundant same-origin detection (~60 lines) since the sameSite:lax + httpOnly cookie flags already provide CSRF protection

Full Changelog: v1.1.1...v1.2.0