Wordpress/tests/phpunit/tests/rest-api
TimothyBlynJacobs 1856d0fe2a REST API: Introduce Application Passwords for API authentication.
In WordPress 4.4 the REST API was first introduced. A few releases later in WordPress 4.7, the Content API endpoints were added, paving the way for Gutenberg and countless in-site experiences. In the intervening years, numerous plugins have built on top of the REST API. Many developers shared a common frustration, the lack of external authentication to the REST API.

This commit introduces Application Passwords to allow users to connect to external applications to their WordPress website. Users can generate individual passwords for each application, allowing for easy revocation and activity monitoring. An authorization flow is introduced to make the connection flow simple for users and application developers.

Application Passwords uses Basic Authentication, and by default is only available over an SSL connection.

Props georgestephanis, kasparsd, timothyblynjacobs, afercia, akkspro, andraganescu, arippberger, aristath, austyfrosty, ayesh, batmoo, bradyvercher, brianhenryie, helen, ipstenu, jeffmatson, jeffpaul, joostdevalk, joshlevinson, kadamwhite, kjbenk, koke, michael-arestad, Otto42, pekz0r, salzano, spacedmonkey, valendesigns.
Fixes #42790.


git-svn-id: https://develop.svn.wordpress.org/trunk@49109 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-08 22:12:02 +00:00
..
json_schema_test_suite REST API: Add support for the uniqueItems keyword. 2020-07-07 03:20:34 +00:00
rest-application-passwords-controller.php REST API: Introduce Application Passwords for API authentication. 2020-10-08 22:12:02 +00:00
rest-attachments-controller.php Tests: Require imagejpeg() function in some REST API attachments controller tests. 2020-09-25 02:21:33 +00:00
rest-autosaves-controller.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-block-directory-controller.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
rest-block-renderer-controller.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-block-type-controller.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-blocks-controller.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
rest-categories-controller.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-comments-controller.php Tests: Correct assertion in WP_Test_REST_Comments_Controller::check_comment_data(). 2020-09-26 03:12:21 +00:00
rest-controller.php REST API: Support the patternProperties JSON Schema keyword. 2020-10-01 02:47:08 +00:00
rest-pages-controller.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-plugins-controller.php Tests: Replace a few more instances of assertEquals() with assertSame(). 2020-09-04 07:36:33 +00:00
rest-post-meta-fields.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
rest-post-statuses-controller.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-post-types-controller.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-posts-controller.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:13:57 +00:00
rest-request-validation.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
rest-request.php REST API: Support a route-level validation callback. 2020-09-05 18:07:46 +00:00
rest-revisions-controller.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-schema-sanitization.php REST API: Support the patternProperties JSON Schema keyword. 2020-10-01 02:47:08 +00:00
rest-schema-setup.php REST API: Introduce Application Passwords for API authentication. 2020-10-08 22:12:02 +00:00
rest-schema-validation.php REST API: Support the patternProperties JSON Schema keyword. 2020-10-01 02:47:08 +00:00
rest-search-controller.php REST API: Introduce search term handler. 2020-10-08 01:30:25 +00:00
rest-server.php REST API: Refactor WP_REST_Server::dispatch() to make internal logic reusable. 2020-09-05 21:50:31 +00:00
rest-settings-controller.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
rest-tags-controller.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-taxonomies-controller.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-term-meta-fields.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
rest-test-controller.php REST API: Support the patternProperties JSON Schema keyword. 2020-10-01 02:47:08 +00:00
rest-themes-controller.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-users-controller.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00