Install
Works with Drupal: ^11.3 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
126.68 KB
MD5: 1592808ef6034b155392f917ea1670c4
SHA-1: 0470beb55e2f38bf05bcabfc1309849afe68b73e
SHA-256: 9b95e116a330699d4c522d5f6271884768b64531887cbe954df3811356031cdc
Download zip
191.25 KB
MD5: 974e125d76ea661adcb2c5f678cb285a
SHA-1: 4751e96da3d0f70a6880774e8108d4c0ef5e942e
SHA-256: 2f5ed6cf5162635c5e7817fabffac79b3da02e85b7e9f4d7f5acd02e4c7157f6
Release notes
The first release. Application Passwords gives each user named, revocable passwords for the site's APIs (REST, JSON:API, GraphQL and MCP), so scripts, CI jobs and AI agents never need the account password.
What it does
- Many named passwords per account, generated by the server, shown once and stored only as a SHA-256 hash, in a
dap_format with a checksum. - HTTP Basic
username:passwordorAuthorization: Bearer, alongside core's HTTP Basic Authentication, over HTTPS only, with per-IP flood control that never turns away a valid password. - Optional scopes by route group, role and permission, applied through core's Access Policy API after every other policy, with caches kept apart for each scope.
- Optional expiry and IP limits. Revocation by the owner, an administrator, Drush or the client itself, automatic on block, delete and (by default) password change, and in effect on the next request.
- Passwords for other accounts, behind their own restricted permission, capped at what the creator and the account both hold on every request, recorded and emailed to the account.
- Never accepted on login, account edit, admin or this module's own pages, and never able to change an account's password or email address or cancel the account.
- An overview with a search that finds a leaked password in pasted text, Drush commands, an introspection endpoint, events and a provenance API for MCP tools and audit logging.
Tested
- 143 tests (66 unit, 50 kernel, 22 functional, 5 JavaScript) on Drupal 11.4 with PHP 8.4, on MariaDB and SQLite.
- Drush commands tested by running the real
drushbinary against a test site. - drupal.org's pipeline: all 143 tests pass on Drupal 11 with MySQL, PostgreSQL and SQLite, on Drupal 11.3 (the previous minor) and on Drupal 12 (the next major).
- Drupal 12.0.0-beta2 on PHP 8.5: the same 143 tests all pass, with nothing skipped.
AI-assisted: this release and these notes were written with an AI assistant and checked against the code and the test results before publishing.