@deepcell @pesseba
I ended up also commenting out some lines in class-jwt-auth-public:
lines 252-258 are commented out as well as 311 to 317. I’m on wpengine and haven’t contact support to ask about this. I did add the SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1 to my .htaccess and I was still getting that error. So after commenting those lines that throw an error – my auth seems to be working again. I only checked two routes though that use it. Seems like wpengine is doing some auth or something and the plugin thinks there is a token being sent because I am just trying to make a simple GET request that does not require auth and I get that error Authorization header malformed. I should also note that I’m using woocommerce and using their http-client to fetch data. If I disable the JWT plugin, I can fetch all my products, but when I enable it I get that error. So I’m not sure if it has to do with WC either.
I will report more once I talk to WPENGINE.
-
This reply was modified 5 years, 11 months ago by everytuesday.