laravel-api-server/authentication
Composer 安装命令:
composer require laravel-api-server/authentication
包简介
This project holds the Authentication module for the API-Server.
关键字:
README 文档
README
This project holds the Authentication module for the Laravel API-Server. It provides token based authentication using JWT.
Installation
Add the following to your env file:
# JWT private key (usually autogenerated)
JWT_SECRET=YPNdFz7wlJH3u237P97ZGmvP2Kc7MHAh
For authentication add this to the $routeMiddleware-attribute
of your app/Http/Kernel.php-file:
'auth.jwt' => \ApiServer\Authentication\Http\Middleware\AuthenticateJwt::class,
Depencies
- Authorization
- Option
- laravel-api-server/jsonapi
- tymon/jwt-auth
- barryvdh/laravel-cors
Documentation
Contributing
Submitting patches
Patches can be submitted using the Merge-Request link of our Gitlab.
License
See License
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-16