• wickiemeister

    (@wickiemeister)


    After setup the plugin I got this error message

    {
    ? ? “success”: false,
    ? ? “statusCode”: 500,
    ? “code”: “jwt_auth_bad_config”,
    ? ? “message”: “JWT is not configured properly.”,
    ? ? “data”: []
    }

    my .htacess looks like

    php_value memory_limit 256M
    php_value max_input_vars 10000

    RewriteEngine On
    RewriteCond %{HTTP:Authorization} ^(.)
    RewriteRule ^(.) – [E=HTTP_AUTHORIZATION:%1]
    SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1
    RewriteBase /
    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    and in wp_config.php

    this 2 lines also inside.

    /** Absolute path to the WordPress directory. /
    if ( ! defined( ‘ABSPATH’ ) ) {
    define( ‘ABSPATH’, dirname( FILE ) . ‘/’ );

    }
    define( ‘JWT_AUTH_SECRET_KEY’, ‘my-top-secret-key’ );
    define( ‘JWT_AUTH_CORS_ENABLE’, true);
    /** Sets up WordPress vars and included files. */
    require_once( ABSPATH . ‘wp-settings.php’ );

    Can anyone help me?
    BR
    Andy

Viewing 1 replies (of 1 total)
  • Plugin Author dominic_ks

    (@dominic_ks)

    That error is triggered in one of two places, depending on whether you are requesting a token or validating one, but both are triggered if the secret key can’t be read from a line like this:

    $secret_key = defined( 'JWT_AUTH_SECRET_KEY' ) ? JWT_AUTH_SECRET_KEY : false;

    From what you’ve pasted, it looks like you have set the secret key, so perhaps you can do some debugging from a plugin file or functions.php file to see if that constant is being set?

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.