100% Free · Open Source GPLv2 · Zero setup requiredGet the Plugin

Opens in a new tab
ITX UserOps
Premium

Application passwords

Who may hold one, how long it lives, and an inventory you can act on. The credential that skips your second factor by design.

This page is the reference. For what application password governance is for and what it looks like, see the feature overview.

WordPress application passwords exist to let a script, an app or a cron job authenticate without a human present. They deliberately bypass interactive MFA — that is their purpose, and demanding a TOTP code from a scheduled job would be incoherent.

So the controls that make sense for them are not "require a second factor". They are eligibility, lifetime and visibility.

Eligibility

KeyDefault
app_passwords.global_disablefalse
app_passwords.allowed_rolesempty (anyone)

global_disable turns the feature off site-wide. allowed_roles, once non-empty, restricts it to those roles.

On most sites nobody below editor has any reason to hold one.

Lifetime

KeyDefault
app_passwords.default_ttl_days0 (no expiry)
app_passwords.idle_revoke_days0 (never)

default_ttl_days is stamped on new credentials only. Setting it does not retroactively expire the ones already out there — an important distinction if you were expecting it to clean up.

idle_revoke_days revokes credentials that have not been used for N days, which is the one that actually reduces your exposure over time. A credential minted for a migration two years ago and unused since is pure risk with no remaining benefit.

Rules from login security

Application passwords can be held to the same rules as interactive logins:

KeyDefault
app_passwords.enforce_ip_rulestrue
app_passwords.enforce_countrytrue
app_passwords.enforce_lockouttrue
app_passwords.enforce_hoursfalse

The first three default on, because an allowlist that covers your login form and not your REST API is an allowlist with a hole in it.

Hours defaults off, because a cron job running at 3am is the normal case and blocking it would be surprising.

The inventory

A site-wide list of every application password: which account holds it, when it was created, when it was last used, and from where.

That last column is the useful one. It turns "we have some API credentials somewhere" into a list you can work down.

Revocation

Individually from the inventory, in bulk, automatically by idle policy, or all at once for one account through Containment.

Also worth turning on: password_policy.reset_revokes_app_passwords, so a password reset takes the application passwords with it. See Password policies.

Disabling an account

Disabling blocks application passwords too, in the free plugin, with no premium module required. That is the fourth door, and it is the one a password change leaves open.

What gets logged

app_password_created and app_password_deleted are recorded by the free plugin. Premium adds policy denials and idle revocations, and the itxuo_app_password_denied filter lets you inspect or override a denial.

The kill switch

define( 'ITXUO_DISABLE_APP_PASSWORD_POLICY', true );

Stands the policy down if it is blocking something you need working right now.

Log in

Vote on ideas, submit your own and join the discussion.