Banner for Jwt Auth
Create JSON Web Token Authentication in WordPress. Wordpress Tutorial
Noted That:
  • To install correctly this jwt-auth.zip .
  • Fisrt Download the jwt-auth.zip to your computer
  • Extract/Open jwt-auth.zip to Your Computer.
  • Then, Find readme.txt file inside jwt-auth.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.
Start the Tips:

Step-1 : Download " jwt-auth.zip " to Your Local Computer.

Step-2 : Then, Login to your " yourdomain.com/wp-admin " Dashboard.

Login to Wordpress Jwt Auth

Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.

Go to Plugin Install Jwt Auth

Step-4 : Now, Click on " Upload Plugin " button.

Click Upload Button Jwt Auth

Step-5 : Now, Browse " jwt-auth.zip " Downloaded plugin from your computer, Where you downloaded " jwt-auth.zip " According to Step – 1 Above then, click on " Install Now "

Upload Plugin Jwt Auth

Step-6 : Now, Click on " Active Plugin "

Activate Jwt Auth

Step-7 : Then, See left Side Menu. " Jwt Auth " folder is added on left Side Menu. Now, Click on " Jwt Auth " folder.

Noted that: If you do not see " Jwt Auth " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ".

Step-8 : Now you configure yourself oR Watch video tutorial below about Jwt Auth Configurations and Settings or How to work " Jwt Auth " in your WordPress site.

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " JWT Auth – WordPress JSON Web Token Authentication " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is JWT Auth – WordPress JSON Web Token Authentication
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide

Enable PHP HTTP Authorization Header

Shared Hosts

Most shared hosts 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

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


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

Installing Through the WordPress Administrative Area:

  • From WordPress administrative area, go to Plugins -> Add New
  • Search for JWT Auth
  • Install it
  • Easily configure it (see “Configuration” below)
  • and then activate it

Installing by Downloading Manually:

  • Download the plugin from WordPress plugins page
  • Upload to your wp-content directory
  • Easily configure it (see “Configuration” below)
  • Activate it from Plugins menu in admin area

Configuration

Configurate the Secret Key

The JWT needs a secret key to sign the token. It must be unique and never be 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 use a string from here

Configurate CORs Support

This plugin has the option to enable CORs support.

To enable the 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 the plugin dashboard.


Name