Make WordPress Core


Ignore:
Timestamp:
10/27/2020 06:30:03 PM (4 years ago)
Author:
TimothyBlynJacobs
Message:

Site Health, App Passwords: Test if the Authorization header is populated correctly.

App Passwords rely on the Authorization header to transport the Basic Auth credentials. For Apache web servers, WordPress automatically includes a RewriteRule to populate the value for servers running in CGI or FastCGI that wouldn't ordinarily populate the value.

This tests if the header is being filled with the expected values. For Apache users, we direct the user to visit the Permalinks settings to flush their permalinks. For all other users, we direct them to a help document on developer.wordpress.org.

Props Clorith, marybaum, TimothyBlynJacobs.
Fixes #51638.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php

    r49154 r49334  
    137137            '/wp-site-health/v1/tests/loopback-requests',
    138138            '/wp-site-health/v1/tests/dotorg-communication',
     139            '/wp-site-health/v1/tests/authorization-header',
    139140            '/wp-site-health/v1/directory-sizes',
    140141        );
Note: See TracChangeset for help on using the changeset viewer.