Skip to content

Conversation

@mindctrl
Copy link
Contributor

This is a first pass at documenting Application Passwords. Is this along the lines of what is being proposed?

Note that an LLM was used to help generate this document, specifically GPT 5.2.

Closes #368.

Comment on lines 38 to 51
### Using an Application Password {#using-an-application-password}

Application Passwords are typically used via HTTP Basic Authentication:

* **Username**: the WordPress username (login).
* **Password**: the generated Application Password.

Because Basic Auth credentials can be intercepted on the network if unencrypted, you should use HTTPS. See: [HTTPS](https://developer.wordpress.org/advanced-administration/security/https/).

Example (REST API request with `curl`):

```
curl --user "USERNAME:APPLICATION_PASSWORD" https://example.com/wp-json/wp/v2/users/me
```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this section is accurate. I'm trying to think of how a WP user application password would interact with or be used by HTTP Basic Auth (which generally operates outside of WordPress at the server level).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this at first, but ended up digging into it. Unless the web server has a specific rule, it passes to WP which validates it in wp_validate_application_password(), which is hooked to the determine_current_user filter. https://github.com/WordPress/wordpress-develop/blob/44f1517e8f6dd72710a143420c3a0c2bae1a3766/src/wp-includes/user.php#L536

I've updated the docs to add a little more info, but did not mention how WP does this. Let me know if you think it needs more clarification.

@mindctrl
Copy link
Contributor Author

@jazzsequence thanks for the review! I've updated the PR based on your feedback. Let me know what you think.

Copy link

@jazzsequence jazzsequence left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kittenkamala kittenkamala merged commit 87952a3 into WordPress:main Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NEW: documentation about Application Password

3 participants