Details
Lumen with JWT Authentication
Basically this is a starter kit for you to integrate Lumen with JWT Authentication
Quick Start
> Note:
- You can now use:
- `
POST /auth/login`
?> with email and password, obtain a JWT token
- `
GET /posts`
?> anyone gets a list of all the posts in the database
- `
POST /posts`
?> any authenticated user (using JWT, for instance) can create a post
- `
PUT /posts/:post_id `
?> the Owner of :post_id (authenticated using JWT, for instance) can modify the post
And remember, JWT requires you to provide the token as a header.
|
Name: |
Lumen PHP JWT API Authentication |
Base name: |
lumen-jwt-api |
Description: |
Create an API that supports JSON Web tokens |
Version: |
- |
PHP version: |
5 |
License: |
The PHP License |
|
|
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|
File |
Role |
Description |
Kernel.php |
Class |
Class source |
File |
Role |
Description |
app.php |
Class |
Class source |
File |
Role |
Description |
auth.php |
Conf. |
Configuration script |
jwt.php |
Conf. |
Configuration script |
File |
Role |
Description |
web.php |
Example |
Example script |