Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Authorization Test Failed" for "Indie Auth" #243

Open
bcn-git opened this issue Feb 7, 2023 · 2 comments
Open

"Authorization Test Failed" for "Indie Auth" #243

bcn-git opened this issue Feb 7, 2023 · 2 comments

Comments

@bcn-git
Copy link

bcn-git commented Feb 7, 2023

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,

@HammyHavoc
Copy link

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.

@bcn-git
Copy link
Author

bcn-git commented Jul 15, 2023

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

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

No branches or pull requests

2 participants