Skip to content

v1.98.1 - Amansinaya

Choose a tag to compare

@MichaelSowah MichaelSowah released this 04 Dec 00:26
· 43 commits to main since this release
da0b6ac

[1.98.1] - 2026-12-04 — Amansinaya

API-key requests through the auth middleware.

Fixed

  • An X-API-Key header alone authenticates through the auth middleware. The middleware's
    credential check looked only for a Bearer token (or the opt-in query token) before running the
    providers, so a request carrying only X-API-Key, or Authorization: ApiKey <key>, was refused
    with "Authentication required" even though the api_key provider reads both. When api_key is
    among the middleware's providers, those sources (and ?api_key= when
    security.api_keys.allow_query_param is on) now count as credentials. An unknown key now gets
    "Invalid credentials" rather than "Authentication required".
  • API-key requests get auth.user.uuid. It was set only by the auth enricher, from the
    session or JWT, so key requests had auth.user but no auth.user.uuid. The middleware now
    fills it from the authenticated identity when the enricher didn't.

Added

  • ApiKeyAuthenticationProvider::apiKeyFromRequest(Request, bool $allowQueryParam): the key a
    request carries, from the sources the provider reads.