You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using JWT Authentication Plugin with WP Engine Hosting
Before submitting an issue, please answer the following questions:
I am running the latest plugin version (1.3.4).
I am running the latest WordPress version.
I know what PHP version I'm using.
I checked the documentation and found no answer.
I checked to make sure that this issue has not already been filed.
Context
WP Engine has informed me that they do not support the use of the .htaccess file, even if we were to edit it. Complying with their new standards is essential. Instead of using the code snippet provided in the documentation, WP Engine recommends using a Web Rule or Nginx code snippet to ensure the proper functioning of this plugin.
WordPress version: 6.3.2
PHP Version: 8.0.30
JWT Auth Plugin Version: 1.3.4
I attempted to convert the provided .htaccess code into Nginx syntax, but I encountered issues, which is why I'm seeking assistance.
just tried this with WP Engine and it did NOT work
location / {
# Your existing Nginx configuration here
# JWT authentication
auth_jwt "[Key I Generated]"; // Use the JWT secret key you defined in functions.php
auth_jwt_key_file /dev/null; // Use /dev/null to indicate no key file is used
auth_jwt_alg HS256;
# Continue with your existing Nginx configuration
}
The text was updated successfully, but these errors were encountered:
Flywheel, owned by WP Engine, uses NGINX servers and Google Cloud. We have websites that are hosted on Flywheel that currently use this plugin with no issues.
WP Engine and .htaccess File Compatibility
Using JWT Authentication Plugin with WP Engine Hosting
Before submitting an issue, please answer the following questions:
Context
WP Engine has informed me that they do not support the use of the .htaccess file, even if we were to edit it. Complying with their new standards is essential. Instead of using the code snippet provided in the documentation, WP Engine recommends using a Web Rule or Nginx code snippet to ensure the proper functioning of this plugin.
I attempted to convert the provided .htaccess code into Nginx syntax, but I encountered issues, which is why I'm seeking assistance.
Original .htaccess Code:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
Attempted Nginx Configuration:
Update
Made another attempt to get around this issue. I added this to my function.php
just tried this with WP Engine and it did NOT work
The text was updated successfully, but these errors were encountered: