Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dodistyo/ci-rest-jwt
Codeigniter REST API using JWT for Authentication
https://github.com/dodistyo/ci-rest-jwt
codeigniter jwt restful
Last synced: 6 days ago
JSON representation
Codeigniter REST API using JWT for Authentication
- Host: GitHub
- URL: https://github.com/dodistyo/ci-rest-jwt
- Owner: dodistyo
- License: mit
- Archived: true
- Created: 2017-10-11T17:09:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-02T02:05:07.000Z (almost 7 years ago)
- Last Synced: 2024-10-01T07:42:36.428Z (4 months ago)
- Topics: codeigniter, jwt, restful
- Language: PHP
- Homepage:
- Size: 688 KB
- Stars: 95
- Watchers: 8
- Forks: 84
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# CodeIgniter Rest Server With JWT Authentication
A fully RESTful server implementation for CodeIgniter using JWT for Authentication
## Notes- Import Database from /db/rest_jwt.db
- Test it with postman/insomnia
- Create post method from postman for user authentication "http://localhost/ci-rest-jwt/api/auth/login"
- Add this to body multipart form :
username = dodi
password = dodi123
- If your authentication success you will get generated token response
- To test it, go Create post method from postman "http://localhost/ci-rest-jwt/api/main/test" and then you can attach that generated token you've got to the header authentication bearer token. see example bellow :Authentication: Bearer "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjIiLCJ1c2VybmFtZSI6ImRvZGk"
## Refference
This project Using REST by Phil Sturgeon and Firebase/PHP-JWT.
For more information :
## REST
https://github.com/chriskacerguis/codeigniter-restserver
## JWT
https://github.com/firebase/php-jwt