Enables token based authentication for your WordPress Rest APIs ( Including Custom EndPoints )
This plugin gives your api a strong protection by adding a token based authentication system to wordpress.
As this is a WordPress based plugin, so you would need (you probably must be having already) a WordPress installation.
Installing this plugin is simply straight forward
Login into your wp-admin with admin's account
Navigate to Plugins > Add New
Upload Plugin > Select this plugin's ZIP
Click Activate
End with an example of getting some data out of the system or using it for a little demo
To get a valid token, hit URL with POST
curl --header "Content-Type: application/json" --data '
{"username":"imrokin","password":"imrokin"}'
http://localhost/wp-json/rest_auth/login
which on success will return a JSON object like this
{"success":true,"user_login":"imrokin","user_id":2,"msg":"login ok","token":"Re7a7ZxWzg71U0INZ6RU5ErDcryGnXjVr9mTZlRWTyj"}
and simply to logout,
curl --header "Content-Type: application/json" --data '
{"user_id":"2","token":"Re7a7ZxWzg71U0INZ6RU5ErDcryGnXjVr9mTZlRWTyj"}'
http://localhost/wp-json/rest_auth/logout
This plugin follows WordPress PHP Coding Standards
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to me.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Anand - Initial work - lapak10
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details