DEV Community

Cover image for JWT in WordPress - Connect Mobile Apps with WordPress
Nicu Micle
Nicu Micle

Posted on

JWT in WordPress - Connect Mobile Apps with WordPress

What is Simple JWT Login?

Simple JWT Login is a FREE WordPress plugin that allows you to use a JWT on WordPress REST endpoints.

The main purpose of this plugin is to allow Mobile apps, or other websites to access the content from a WordPress website via REST endpoints in a secure way.

Some Awesome Features.

  • AUTO LOGIN: You are able to auto-login into a WordPress website with a JWT.
  • REGISTER USERS: API endpoint that allows you to register new users in WordPress.
  • DELETE USERS: Delete Users with JWT.
  • AUTHENTICATE USERS: API endpoint to Generate a JWT, refresh JWT and invalidate JWT.
  • LIMIT ACCESS BY IP ADDRESS: Limit access to Simple-JWT-Login only for specific IP addresses.
  • CREATE USERS WITH DIFFERENT ROLES: You are able to create multiple users with different roles on the same endpoint.
  • INTEGRATES WELL WITH OTHER PLUGINS: This plugin works well in combination with other plugins that extends the WordPRess REST API.
  • ALLOW JWT USAGE ON OTHER ENDPOINTS: Add a JWT to requests for other api endpoints and you will act as an authenticated user.
  • PROTECT ENDPOINTS: Protect endpoints for being accessed without a JWT. This way, you can limit the access to your endpoints only to authenticated users.
  • CORS SUPPORT: CORS support for your API endpoints.
  • RESET PASSWORD: You can request password change via API call.
  • CHANGE PASSWORD: You can change users password with an API call.

How the plugin looks like?

  • Plugin Dashboard:
    Dashboard

  • General Settings
    General Settings

How to install the plugin?

Here’s how you install and activate the Simple-JWT-login plugin:

  1. Go to the Plugins menu in WordPress and click Add New
  2. Search for 'Simple JWT Login' and select Install Now
  3. Activate the plugin when prompted

Or

  1. Download the plugin from https://wordpress.org/plugins/simple-jwt-login.
  2. Upload the zip file in WordPress
  3. Activate the plugin

SDK

Currently I've implemented only the PHP SDK, that can be found here: https://github.com/nicumicle/simple-jwt-login-client-php

I'm planning in the near feature to release a JS SDK.

Documentation

You can find more details about the plugin on https://simplejwtlogin.com

Contribution

Any feedback is welcomed. Feel free to:

Top comments (0)