thisismzm / simple-jwt-login

This plugin allows you to log in, register, authenticate, delete and change the user password to a WordPress website using a JWT.

Home Page:http://wordpress.org/plugins/simple-jwt-login/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rating Total Downloads Active installs

Simple JWT Login is a 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.

Main features of the plugin

  • Authenticate : REST endpoint that will generate a JWT
  • Autologin: Autologin to a WordPress website with JWT
  • Register user: Register users in WordPress by calling a REST endpoint
  • Delete user: You can delete a WordPress user by adding some details in the JWT payload.
  • Reset password: REST endpoint that allows you to reset WordPress User password. Also, it can send custom email if you want.
  • Protect endpoints: Protect WordPress endpoints with a JWT. This way, you can make some endpoints private, and the content can be viewed only if you provide a valid JWT.

Documentation

Plugin documentation can be found on simplejwtlogin.com.

What version should you use

If you want to use this plugin in production, we recommend you to use the version from WordPress.org Simple-JWT-Login plugin page.

⚠️ Make sure you use the latest plugin version in production.

In case you want to use the development version, you can download it from downloads/simple-jwt-login.zip

Contributing to Simple-JWT-Login

Simple-JTW-Login is an open-source project and welcomes all contributors.

As with all WordPress projects, we want to ensure a welcoming environment for everyone.

With that in mind, all contributors are expected to follow our Code of Conduct.

You can contribute by:

  • Opening Merge requests on existing issues
  • Suggest features
  • Report bugs
  • Write tests
  • Help us to translate the plugin

PHP Client

In order to easily integrate your app/site with the simple-jwt-login plugin, we have developed a composer package.

You can check the github repository for more details and code examples.

Development

Dev Installation

Clone this repository.

After that, run:

    composer install

Plugin code in is the folder simple-jwt-login.

Docker image

You can use docker, to set up this project on your local machine

 docker-compose -f docker/docker-compose.yaml up

After docker machine is up and running, you need to configure your local WordPress, by accessing the following URL in your browser :

http://localhost:88/

After that, you just need to activate the plugin.

Running tests

    composer tests

Coding Standards

    composer phpcs

Check plugin

This will check the plugin build, and it will run php-md, php-cs and the phpunit tests.

    composer check-plugin

Install on a WordPress Website

Please note that this plugin version is not fully tested. If you want to make sure you have a stable version, please download this plugin from WordPress.org.

If you want to upload the simple-jwt-login plugin to your website:

About

This plugin allows you to log in, register, authenticate, delete and change the user password to a WordPress website using a JWT.

http://wordpress.org/plugins/simple-jwt-login/

License:GNU General Public License v2.0


Languages

Language:PHP 97.6%Language:JavaScript 1.3%Language:CSS 1.0%Language:Dockerfile 0.1%Language:Shell 0.0%