Cms: 3.5 RC1 - Basic http authentication on the server breaks the application.

Created on 21 Jul 2020  路  4Comments  路  Source: craftcms/cms

Description

After upgrading from 3.5-beta3 we can no longer log into any instance that has basic authentication on the server. The application is trying to authenticate with the credentials for the server.

I believe the issue is related to this commit, which makes an assumption in regards to what information is in the request. https://github.com/craftcms/cms/commit/1e736e893b0b8801f60b47596fa50260d08c1f73

Steps to reproduce

  1. Add basic http authentication to the server on a Craft 3.5-RC1 install

Additional info

  • Craft version: Craft 3.5-RC1
bug

All 4 comments

Thanks for pointing that out! I鈥檝e just added a new enableBasicHttpAuth config setting, which is _disabled_ by default, so you have to explicitly enable that before Craft will start checking for basic auth credentials.
To get the fix early, change your craftcms/cms requirement in composer.json to:

"require": {
  "craftcms/cms": "3.5.x-dev",
  "...": "..."
}

Then run composer update.

Thanks for that, works perfectly.

Craft 3.5 RC2 is out now with that change.

Awesome, thanks for this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

angrybrad picture angrybrad  路  3Comments

RitterKnightCreative picture RitterKnightCreative  路  3Comments

davist11 picture davist11  路  3Comments

darylknight picture darylknight  路  3Comments

michel-o picture michel-o  路  3Comments