Problem/Motivation
User accounts that rely solely on basic_auth for authentication will be locked out after an upgrade to Drupal 10.1.x
The issue is caused by the new password hashing algorithm (https://www.drupal.org/node/3322420).
basic_auth does not appear to be re-hashing the user password in the same way a UI login would resulting in a user being locked out.
This is especially concerning as many accounts using basic_auth will be automated json_api processes where a failure may not be immediately obvious. Accounts may end up in the flood table.
Steps to reproduce
- Setup a basic_auth user on a Drupal core 10.0.x site
- Upgrade from Drupal core 10.0.x to 10.1.x
- Attempt to authenticate using basic auth
- See failure to authenticate
Proposed resolution
Accounts authenticating using basic_auth should have their passwords re-hashed in the same way that users logging in via the UI do as documented in https://www.drupal.org/node/3322420.
Comments
Comment #2
alexpott@genebobmiller thanks for the bug report. I think that you might have not installed phpass or run the updates. I've just tested this and everything works as expected. Here's what I did.
Given this I'm setting this to postponed maintainer needs more info.
Comment #3
genebobmiller commentedThanks for investigating Alex, I'll dig deeper and see why our instance is behaving differently.
Comment #5
quietone commented@genebobmiller, did you determine why your instance was behaving differently? If you have resolved the problem, add a comment sharing what you did as it may help others.
Since we need more information to move forward with this issue, I am keeping the status at Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #6
pameeela commentedClosing since no info was provided after it was requested in May.