PageForge 1.3: Überprüfen Sie jeden Durchlauf, bevor er schreibt, aktualisierte Seiten, SpinTax und wiederaufnehmende Batches. Sehen Sie, was sich geändert hat
JWT Authentication for WP REST API icon
aktiv gepflegt Getestet mit WP 7.1 #698 most installed plugin #1 in json web authentication

JWT Authentication for WP REST API

Extends the WP REST API using JSON Web Tokens Authentication as an authentication method.

Aktive Installationen50K+50k + Stufe
Downloads · 30d22.8K▲ +177.4% vs prev. 30d
Wertung4.4/553 Bewertungen
Gesundheits-Score88/100Ausgezeichnet
Downloads aller Zeiten979KSince Sep 2015
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 4.2PHP 7.4.0+
Gesamtrang#698of 75,826 plugins
Unser Urteil

Sichere Auswahl

Yes — JWT Authentication for WP REST… is a safe, well-maintained plugin to use in 2026. It runs on 50K+ sites, is rated 4.4/5 and was last updated 2 days ago, and scores 88/100 on our health check.

  • Bewährt im Maßstab auf 50k + aktiven Standorten
  • Aktiv entwickelt — Letztes Update vor 2 Tagen
  • Getestet mit dem neuesten WordPress (7.1)
  • Momentum — downloads up 177.4% vs the previous 30 days

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

2.8K5.6K8.3KAug 23Oct 6Nov 20
Gestern2,801
Täglicher Durchschnitt (1 Jahr)384
Spitzentag13,18818. Februar 2026
Letzte 12 Monate139.7K

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where JWT Authentication for WP R… stands today
Gesamtbeliebtheit #698 of 75,826 WordPress.org plugins Top 0.92%
50k+ Installiert die Stufe 240 of 322
Nächste Stufe: 100k + installiert
Json web authentication #1 von 2 Plugins → Jwt #1 von 27 Plugins → Oauth #1 of 70 plugins → Rest-api #4 of 400 plugins → Wp-api #1 von 30 Plugins →

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
json web authentication #2 602 Best json web authentication plugins →
jwt #3 324 Best jwt plugins →
oauth #20 1,810 Best oauth plugins →
rest-api #2 9,660 Best rest-api plugins →
wp-api #12 10,000 Best wp-api plugins →

Versionsübernahme

Anteil aktiver Sites pro Release.

  • 1.564.1%
  • 1.317.1%
  • 1.411.8%
  • 1.27.0%

Bewertungsaufschlüsselung

★★★★★★★★★★ 4.4 from 53 reviews

  • 5★79.2%
  • 4★3.8%
  • 3★3.8%
  • 2★1.9%
  • 1★11.3%

About JWT Authentication for WP REST API

From the official readme · v1.5.1

Beschreibung

This plugin seamlessly extends the WP REST API, enabling robust and secure authentication using JSON Web Tokens (JWT). It provides a straightforward way to authenticate users via the REST API, returning a standard JWT upon successful login.

Key features of this free version include:

  • Standard JWT Authentication: Implements the industry-standard RFC 7519 for secure claims representation.
  • Simple Endpoints: Offers clear /token and /token/validate endpoints for generating and validating tokens.
  • Configurable Secret Key: Define your unique secret key via wp-config.php for secure token signing.
  • Optional CORS Support: Easily enable Cross-Origin Resource Sharing support via a wp-config.php constant.
  • Developer Hooks: Provides filters (jwt_auth_expire, jwt_auth_token_before_sign, etc.) for customizing token behavior.

JSON Web Tokens are an open, industry standard method for representing claims securely between two parties.

For users requiring more advanced capabilities such as multiple signing algorithms (RS256, ES256), token refresh/revocation, UI-based configuration, or priority support, consider checking out JWT Authentication PRO.

Support and Requests: Please use GitHub Issues. For priority support, consider upgrading to PRO.

REQUIREMENTS

WP REST API V2

This plugin was conceived to extend the WP REST API V2 plugin features and, of course, was built on top of it.

So, to use the wp-api-jwt-auth you need to install and activate WP REST API.

PHP

Minimum PHP version: 7.4.0

PHP HTTP Authorization Header Enable

Most shared hosting providers have disabled the HTTP Authorization Header by default.

To enable this option you’ll need to edit your .htaccess file by adding the following:

RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]

WPENGINE

For WPEngine hosting, you’ll need to edit your .htaccess file by adding the following:

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

See https://github.com/Tmeister/wp-api-jwt-auth/issues/1 for more details.

CONFIGURATION

Configure the Secret Key

The JWT needs a secret key to sign the token. This secret key must be unique and never revealed.

To add the secret key, edit your wp-config.php file and add a new constant called JWT_AUTH_SECRET_KEY:

define('JWT_AUTH_SECRET_KEY', 'your-top-secret-key');

You can generate a secure key from: https://api.wordpress.org/secret-key/1.1/salt/

Looking for easier configuration? JWT Authentication PRO allows you to manage all settings through a simple admin UI.

Configure CORS Support

The wp-api-jwt-auth plugin has the option to activate CORS support.

To enable CORS Support, edit your wp-config.php file and add a new constant called JWT_AUTH_CORS_ENABLE:

define('JWT_AUTH_CORS_ENABLE', true);

Finally, activate the plugin within your wp-admin.

Namespace and Endpoints

When the plugin is activated, a new namespace is added:

/jwt-auth/v1

Also, two new endpoints are added to this namespace:

Endpoint | HTTP Verb
/wp-json/jwt-auth/v1/token | POST
/wp-json/jwt-auth/v1/token/validate | POST

Need more functionality? JWT Authentication PRO includes additional endpoints for token refresh and revocation.

USAGE

/wp-json/jwt-auth/v1/token

This is the entry point for JWT Authentication.

It validates the user credentials, username and password, and returns a token to use in future requests to the API if the authentication is correct, or an error if authentication fails.

Sample Request Using AngularJS

(function() {
  var app = angular.module('jwtAuth', []);

  app.controller('MainController', function($scope, $http) {
    var apiHost = 'http://yourdomain.com/wp-json';

    $http.post(apiHost + '/jwt-auth/v1/token', {
      username: 'admin',
      password: 'password'
    })
    .then(function(response) {
      console.log(response.data)
    })
    .catch(function(error) {
      console.error('Error', error.data[0]);
    });
  });
})();

Success Response From The Server

{
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9qd3QuZGV2IiwiaWF0IjoxNDM4NTcxMDUwLCJuYmYiOjE0Mzg1NzEwNTAsImV4cCI6MTQzOTE3NTg1MCwiZGF0YSI6eyJ1c2VyIjp7ImlkIjoiMSJ9fX0.YNe6AyWW4B7ZwfFE5wJ0O6qQ8QFcYizimDmBy6hCH_8",
  "user_display_name": "admin",
  "user_email": "admin@localhost.dev",
  "user_nicename": "admin"
}

Error Response From The Server

{
  "code": "jwt_auth_failed",
  "data": {
    "status": 403
  },
  "message": "Invalid Credentials."
}

Once you get the token, you must store it somewhere in your application, e.g., in a cookie or using localStorage.

From this point, you should pass this token with every API call.

Sample Call Using The Authorization Header With AngularJS

app.config(function($httpProvider) {
  $httpProvider.interceptors.push(['$q', '$location', '$cookies', function($q, $location, $cookies) {
    return {
      'request': function(config) {
        config.headers = config.headers || {};
        // Assume that you store the token in a cookie
        var globals = $cookies.getObject('globals') || {};
        // If the cookie has the CurrentUser and the token
        // add the Authorization header in each request
        if (globals.currentUser && globals.currentUser.token) {
          config.headers.Authorization = 'Bearer ' + globals.currentUser.token;
        }
        return config;
      }
    };
  }]);
});

The wp-api-jwt-auth plugin will intercept every call to the server and will look for the Authorization Header. If the Authorization header is present, it will try to decode the token and will set the user according to the data stored in it.

If the token is valid, the API call flow will continue as normal.

Sample Headers

POST /resource HTTP/1.1
Host: server.example.com
Authorization: Bearer mF_s9.B5f-4.1JqM

ERRORS

If the token is invalid, an error will be returned. Here are some sample errors:

Invalid Credentials

[
  {
    "code": "jwt_auth_failed",
    "message": "Invalid Credentials.",
    "data": {
      "status": 403
    }
  }
]

Invalid Signature

[
  {
    "code": "jwt_auth_invalid_token",
    "message": "Signature verification failed",
    "data": {
      "status": 403
    }
  }
]

Expired Token

[
  {
    "code": "jwt_auth_invalid_token",
    "message": "Expired token",
    "data": {
      "status": 403
    }
  }
]

Need advanced error tracking? JWT Authentication PRO offers enhanced error tracking and monitoring capabilities.

/wp-json/jwt-auth/v1/token/validate

This is a simple helper endpoint to validate a token. You only need to make a POST request with the Authorization header.

Valid Token Response

{
  "code": "jwt_auth_valid_token",
  "data": {
    "status": 200
  }
}

AVAILABLE HOOKS

The wp-api-jwt-auth plugin is developer-friendly and provides five filters to override the default settings.

jwt_auth_cors_allow_headers

The jwt_auth_cors_allow_headers filter allows you to modify the available headers when CORS support is enabled.

Default Value:

'Access-Control-Allow-Headers, Content-Type, Authorization'

jwt_auth_not_before

The jwt_auth_not_before filter allows you to change the nbf value before the token is created.

Default Value:

Creation time - time()

jwt_auth_expire

The jwt_auth_expire filter allows you to change the exp value before the token is created.

Default Value:

time() + (DAY_IN_SECONDS * 7)

jwt_auth_token_before_sign

The jwt_auth_token_before_sign filter allows you to modify all token data before it is encoded and signed.

Default Value:

$token = array(
    'iss' => get_bloginfo('url'),
    'iat' => $issuedAt,
    'nbf' => $notBefore,
    'exp' => $expire,
    'data' => array(
        'user' => array(
            'id' => $user->data->ID,
        )
    )
);

Want easier customization? JWT Authentication PRO allows you to add custom claims directly through the admin UI.

jwt_auth_token_before_dispatch

The jwt_auth_token_before_dispatch filter allows you to modify the response array before it is sent to the client.

Default Value:

$data = array(
    'token' => $token,
    'user_email' => $user->data->user_email,
    'user_nicename' => $user->data->user_nicename,
    'user_display_name' => $user->data->display_name,
);

jwt_auth_algorithm

The jwt_auth_algorithm filter allows you to modify the signing algorithm.

Default value:

$token = JWT::encode(
    apply_filters('jwt_auth_token_before_sign', $token, $user),
    $secret_key,
    apply_filters('jwt_auth_algorithm', 'HS256')
);

// ...

$token = JWT::decode(
    $token,
    new Key($secret_key, apply_filters('jwt_auth_algorithm', 'HS256'))
);

JWT Authentication PRO

Elevate your WordPress security and integration capabilities with JWT Authentication PRO. Building upon the solid foundation of the free version, the PRO version offers advanced features, enhanced security options, and a streamlined user experience:

  • Easy Configuration UI: Manage all settings directly from the WordPress admin area.
  • Token Refresh Endpoint: Allow users to refresh expired tokens seamlessly without requiring re-login.
  • Token Revocation Endpoint: Immediately invalidate specific tokens for enhanced security control.
  • Customizable Token Payload: Add custom claims to your JWT payload to suit your specific application needs.
  • Granular CORS Control: Define allowed origins and headers with more precision directly in the settings.
  • Rate Limiting: Protect your endpoints from abuse with configurable rate limits.
  • Audit Logs: Keep track of token generation, validation, and errors.
  • Priority Support: Get faster, dedicated support directly from the developer.

Upgrade to JWT Authentication PRO Today!

Free vs. PRO Comparison

Here’s a quick look at the key differences:

  • Basic JWT Authentication: Included (Free), Included (PRO)
  • Token Generation: Included (Free), Included (PRO)
  • Token Validation: Included (Free), Included (PRO)
  • Token Refresh Mechanism: Not Included (Free), Included (PRO)
  • Token Revocation: Not Included (Free), Included (PRO)
  • Token Management Dashboard: Not Included (Free), Included (PRO)
  • Analytics & Monitoring: Not Included (Free), Included (PRO)
  • Geo-IP Identification: Not Included (Free), Included (PRO)
  • Rate Limiting: Not Included (Free), Included (PRO)
  • Detailed Documentation: Basic (Free), Comprehensive (PRO)
  • Developer Tools: Not Included (Free), Included (PRO)
  • Premium Support: Community via GitHub (Free), Priority Direct Support (PRO)

Installation

Using The WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Search for ‘jwt-authentication-for-wp-rest-api’
  3. Click ‘Install Now’
  4. Activate the plugin on the Plugin dashboard

Uploading in WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Navigate to the ‘Upload’ area
  3. Select jwt-authentication-for-wp-rest-api.zip from your computer
  4. Click ‘Install Now’
  5. Activate the plugin in the Plugin dashboard

Please read our configuration guide to set up the plugin properly.

Änderungsprotokoll

1.5.1

  • Compatibility: Tested up to WordPress 7.1
  • Enhancement: Updated the bundled composer/installers library from 1.12 to 2.3, with no change to how or where the plugin installs
  • Security: Updated development dependencies (handlebars, brace-expansion, fast-uri, undici, fast-xml-parser) to their latest patched versions
  • Development: Updated Vite to 7.3.7, Vitest to 5.0.5 (JS unit tests now need Node 22.12+), Bruno CLI to 4.3.0, WordPress Coding Standards to 3.4.1, wp-phpunit to 7.1.3, WordPress test stubs to 7.1.0 and Brain Monkey to 2.7.0

1.5.0

  • Security: Updated dependencies to latest secure versions (deep-copy, php-parser, phpunit)
  • Feature: Smart upgrade prompts that appear based on actual plugin usage rather than immediately after installation
  • Feature: Usage-based notifications showing real token activity in the dashboard for more relevant upgrade recommendations
  • Improvement: Better first-time experience – new users won’t see upgrade prompts until they’ve had a chance to use the plugin
  • Fix: UTM tracking on upgrade links now works correctly to measure campaign effectiveness

1.4.1

  • Enhancement: Updated lucide-react from 0.294.0 to 0.541.0 – Latest icon library improvements with new icons and performance optimizations
  • Enhancement: Updated tailwind-merge from 2.6.0 to 3.3.1 – Enhanced CSS utility merging capabilities for better styling performance
  • Enhancement: Updated react-syntax-highlighter from 15.6.1 to 15.6.3 – Bug fixes for code display components
  • Development: Updated ESLint to version 9.34.0 – Latest JavaScript linting capabilities
  • Development: Updated TypeScript ESLint to version 8.40.0 – Improved TypeScript code quality checks
  • Development: Updated Vite to version 7.1.3 – Faster build times and improved development experience
  • Development: Updated Vitest to version 3.2.4 – Enhanced testing framework with better coverage reporting
  • Development: Added @usebruno/cli version 2.9.1 – API testing capabilities for development

1.4.0

  • Feature: Live API Explorer – Interactive tool to test JWT endpoints directly from admin dashboard with real API calls
  • Feature: Enhanced Configuration Dashboard – Real-time monitoring of system health and setup requirements
  • Feature: Modern Admin Interface – Complete redesign with React-based components for improved usability
  • Performance: Optimized dashboard loading by consolidating API calls into single endpoint
  • Performance: Faster configuration checks with streamlined status validation
  • Enhancement: Improved visual design with better text clarity and professional styling
  • Enhancement: Modular interface with organized dashboard sections for easier navigation

1.3.8

  • Fix upsell notice bug, now it is show only one time

1.3.7

  • Added PRO announcement

Vollständiges Änderungsprotokoll auf WordPress.org →

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best JWT Authentication for WP RES… alternatives

All json web authentication plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
2 User Data Fields For JWT Authentication User Data Fields For JWT Authentication Wordpress is a good content mangement system for building websites, but it will be better… by Ahmed Hnewa 30+ ★★★★★★★★★★ 5 (3) Vor 4 Jahren 31

Fragen und Antworten

JWT Authentication for WP REST API: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is JWT Authentication for WP REST… free?

Yes. JWT Authentication for WP REST… is free to download and use from the official WordPress.org plugin directory.

Is JWT Authentication for WP REST… safe to use in 2026?

Yes — JWT Authentication for WP REST… is a safe, well-maintained plugin to use in 2026. It runs on 50K+ sites, is rated 4.4/5 and was last updated 2 days ago, and scores 88/100 on our health check.

How many websites use JWT Authentication for WP REST…?

JWT Authentication for WP REST… is active on 50K+ WordPress websites and has been downloaded 979,033 times since it launched in September 2015. It was downloaded 22,830 times in the last 30 days.

Does JWT Authentication for WP REST… work with WordPress 7.1?

Yes. The developer has tested JWT Authentication for WP REST… up to WordPress 7.1.5, the latest release. It requires WordPress 4.2 or newer.

What PHP version does JWT Authentication for WP REST… need?

JWT Authentication for WP REST… requires PHP 7.4.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was JWT Authentication for WP REST… last updated?

The latest version, 1.5.1, was released on November 18, 2026 (2 days ago).

Who makes JWT Authentication for WP REST…?

JWT Authentication for WP REST… is developed and maintained by tmeister.

What are the best alternatives to JWT Authentication for WP REST…?

The most popular alternatives to JWT Authentication for WP REST… are User Data Fields For JWT Au… (30+ installs).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen