GS JWT Authentication for WP REST API

Extends the WP REST API using JSON Web Tokens as an authentication method.
GS JWT plugin provides to encode and decode JSON Web Tokens (JWT), conforming to RFC 7519.

GET OTP and send notification by mail or SMS service

Support and Requests please in Github: https://github.com/gauravin213/gs-jwt

REQUIREMENTS

PHP

Minimum PHP version: 5.3.0

PHP HTTP Authorization Header enable

Most of the shared hosting has disabled the HTTP Authorization Header by default.

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

WPENGINE

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

CONFIGURATION

The JWT needs to Add constant in the wp-confige.php file

Namespace and Endpoints

When the plugin is activated, a new namespace is added

Also, two new endpoints are added to this namespace

Endpoint | HTTP Verb

/wp-json/gs-jwt/v1/login | POST

/wp-json/gs-jwt/v1/token/validate | POST

/wp-json/gs-jwt/v1/get-otp | POST

/wp-json/gs-jwt/v1/verify-otp | POST

/wp-json/gs-jwt/v1/register_user | POST

/wp-json/gs-jwt/v1/register_userbymobile | POST

USAGE

  1. Get JSON web token

Request method:

Reponse

  1. Validate JSON web token

Request method:

Reponse

  1. Get otp by billing mobile number

Request method:

Reponse

  1. Verify otp and mobile number to login

Request method:

Reponse

  1. Register user

Request method:

Reponse

  1. Register user by mobile number

Request method:

Reponse

Sample add SMS and email notification

0

评论0

 
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
显示验证码
没有账号?注册  忘记密码?

社交账号快速登录