You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Composite::challenge() overwrites WWW-Authenticate headers instead of accumulating them #124
Yiisoft\Auth\Method\Composite::challenge() uses withHeader() for each method. When multiple authentication methods are configured, only the lastWWW-Authenticate value remains.
Activity
samdark commentedon Aug 6, 2026
Thanks for reporting. The issue is valid.
Using
withAddedHeader()for these challenges, plus a regression test combiningHttpBearerandHttpBasic, is an appropriate fix.Sakanweb commentedon Aug 7, 2026
Hey, thanks for the quick response!
I checked #125 — the
withAddedHeader()change fixes the overwrite I hit with Composite,and the new test covers it. Looks good to me 👍
Fix yiisoft#124: Fix `HttpBasic` and `HttpBearer` to add `WWW-Authent…