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 Has Failed #285

Open
awsamuel opened this issue Jan 22, 2025 · 11 comments
Open

Authorization Test Has Failed #285

awsamuel opened this issue Jan 22, 2025 · 11 comments

Comments

@awsamuel
Copy link

hi! I'm on WordPress 6.7.1 with WPEngine as my host. They don't allow use .htaccess anymore and I haven't been able to resolve the "Authorization Test Failed" error.

The WPEngine team made the following effort:

Since .htaccess is no longer read on our platform, we've gone ahead and applied an Nginx variation to what you were looking to apply:

if ($http_authorization ~ "^(.*)"){
set $rule_0 1;
}
if ($rule_0 = "1"){
set $http_authorization %1;
}

But that hasn't changed the result. Any suggestions?

Note that I haven't changed to an indiweb-friendly theme yet (I'm on Divi) because this is my main and very long-running website and switching themes would be a monumental process, so first I'm trying to see how this shakes out on my existing theme.

Thanks in advance for any suggestions on next steps.

@dshanske
Copy link
Member

I'm an nginx user. I've never had to do an override. Do they have any security that would filter that header? Happy to talk to them about it.

@awsamuel
Copy link
Author

Thanks for your very quick response! Well, I'm officially mystified. My inclination is to ignore the site health warning and see if I can get up and running despite that warning....but if that's hopeless, thanks in advance for warning me off. I'm not sure what my next step would be to get this resolved, though.

@dshanske
Copy link
Member

Why don't you try logging into something using IndieAuth? Like Indielogin?

@awsamuel
Copy link
Author

brilliant test! and yep, that failed.

OK, this was my second adventure in trying the indieweb approach but I think it's time for me to back away slowly before I fall into a troubleshooting abyss. I think I'm going to revert to Jetpack Social and try Indieweb again when I'm not in my crunch season. Thanks for your efforts at sorting me out!

@awsamuel
Copy link
Author

Sadly it's still not working. Any suggested next steps? I'm stumped.

@dshanske
Copy link
Member

Do you have what WPEngine told you?

@awsamuel
Copy link
Author

WPEngine said...

Since .htaccess is no longer read on our platform, we've gone ahead and applied an Nginx variation to what you were looking to apply:

if ($http_authorization ~ "^(.*)"){
set $rule_0 1;
}
if ($rule_0 = "1"){
set $http_authorization %1;
}


Now I think I should acknowledge that if they've done something that looks correct to you, and if you're saying nginx usually is a non-issue, my bet is one of the following:

  1. I have missed some incredibly basic step in this whole process (installed indieweb plugins? check. added rel="me" links to headers? check. linked back to my website from my social web accounts? yes, at least for mastodon and bluesky (and note that I just updated mastodon to point too www instead of just /alexandrasamuel because my website is set to redirect everything to www)
  2. I have some extension or theme indiosyncracy that conflicts with the indieauth plugin/process. Not sure what that might be, but I have been running this site for 20+ years and even though it's had a few good cleanouts there are a million weird little things. And it's all built in Divi now, which is its own weird little thing.
  3. the www vs just /alexandrasamuel.com is causing some issue somewhere

Any thoughts? And thanks so much for your persistence!

@dshanske
Copy link
Member

Well, let's run down a few things. What did you set on the IndieAuth settings page?

@awsamuel
Copy link
Author

[snapshot here ](https://www.alexandrasamuel.com/wp-content/uploads/2025/01/indieauthsnap.png

Set user to represent site URL (me)
left web sign-in unchecked
left token expiration at 0

@dshanske
Copy link
Member

Also, not the only plugin having issues with passing authorization headers... Tmeister/wp-api-jwt-auth#1

@dshanske
Copy link
Member

And when you go to https://indielogin.com/ and try to log in using your site...what happens?

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