wordpress-indieauth icon indicating copy to clipboard operation
wordpress-indieauth copied to clipboard

"Authorization Test Failed" for "Indie Auth"

Open bcn-git opened this issue 2 years ago • 2 comments

Sorry if this is a multiple sending of an issue, first tries weren't unsuccessful.

I have received following messages on the "IndieAuth Settings" page

Warning: Attempt to read property "message" on null in [SNIP]//wp-content/plugins/indieauth/includes/class-indieauth-admin.php on line 211

as well as

Some host configurations can block the ability of this site to work and may require change. Please run the Site Health check to ensure this will work with your site.

On Site Health, I have the same warning as well as an

"Authorization Test Failed" for "Indie Auth" as well as the infamous message; Authorization has Failed

The authorization header was not returned on this test, which means that your server may be stripping the Authorization header. This is needed for IndieAuth to work correctly.

If you are on Apache, try adding this line to your .htaccess file:

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

If that doesnt work, try this:

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

If that does not work either, you may need to ask your hosting provider to reconfigure to allow the Authorization header to be passed. If they refuse, you can pass it through Apache with an alternate name. The plugin searches for the header in REDIRECT_HTTP_AUTHORIZATION, as some FastCGI implementations store the header in this location. If contacting your hosting provider does not work you can open an issue on GitHub and we will try to assist

  1. I have tested both lines in the .htaccess, to no avail.
  2. I have contacted my hosting provider and they have told me that the "header authorization" is accessible,

I have not found an to my issue answer to my issue in the Issue List,

Wordpress 6.1.1, all plugin updated IndieAuth 4.2.1

Thank you for your support,

bcn-git avatar Feb 07 '23 17:02 bcn-git

Having this problem too; are you sure you use Apache? I have an .htaccess file, but SpinupWP actually uses NGINX, so double-check that.

My issue is that there's instructions for Apache, but nothing for NGINX that I can find.

HammyHavoc avatar Apr 12 '23 10:04 HammyHavoc

Thank you for your message; yes, I use Apache.

bcn-git avatar Jul 15 '23 11:07 bcn-git