prhost/jwtauth-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

prhost/jwtauth-plugin

Composer 安装命令:

composer require prhost/jwtauth-plugin

包简介

No description provided yet...

README 文档

README

*RainLab.User support will be added soon.

This plugin adds to your application functionality to authenticate with JWT tokens easily, no additional settings or code required.

Requirements

  • PHP 7.4 and higher
  • October CMS v2 and higher

Installation

  1. Install plugin via terminal in your enviroment:
php artisan plugin:install Prhost.JWTAuth
  1. Generate JWT Secret:
php artisan jwt:secret

Middleware

To use JWT Middleware, put ResolveUser middleware in your routes. Example below:

Route::group(['middleware' => [\Prhost\JWTAuth\Http\Middlewares\ResolveUser::class]], function () {

  // Routes only for authenticated users
  
});

or

Route::get('account', function () {

   // Logic that should be available only for authenticated users
   
})->middleware(\Prhost\JWTAuth\Http\Middlewares\ResolveUser::class);

Routes

  • POST /jwt/login - Login route
  • POST /jwt/register - Registration route
  • POST /jwt/activate - Activation route (if activation set to mail)
  • POST /jwt/refresh - Refresh route

Suggestions, Ideas, Issues, Bugs

We are open to your suggestions and ideas in public repository of this plugin GitHub.

© 2021, Nick Khaetsky and Vladimir Pyankov under the MIT license.

Russian October CMS comminuty OctoClub.

统计信息

  • 总下载量: 420
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-07-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固