Can’t get token
-
After installation and setting up the plugin (.htaccess and wp-config) as described im alwais getting this error. This happens on any username and all passwords is correct. Any idea what is the issue? Thank you!
{ "code": "[jwt_auth] incorrect_password", "message": "Authentication failed.", "data": { "status": 403 } }
Here is the command that i use:
curl -s -d '{"username":"admin", "password":"pass"}' -H "Content-Type: application/json" -X POST https://mi-site.ltd/wp-json/jwt-auth/v1/token
and here is mi htaccess file:
# BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1] </IfModule>
- The topic ‘Can’t get token’ is closed to new replies.