定制 hubertprein/craft-jwtmanager 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

hubertprein/craft-jwtmanager

Composer 安装命令:

composer require hubertprein/craft-jwtmanager

包简介

Manage JWTs for users which can be used to login.

README 文档

README

Manage JWTs for users which can be used to login.

Requirements

This plugin requires Craft CMS 3.0.0-RC1 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require hubertprein/craft-jwtmanager
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for JWT Manager.

Functionality

Use JWT manager to enable auto login features for your websites and mobile apps using JWTs.

You can also use it as a sort of framework to manually call the JWT and auto login features.

When do you use it? Your mobile apps requests data which needs the user to login with every request that they do. While you should never send the username and password everytime, one should use a JWT. Bonus to it is that logging in using a JWT, is much faster.

Available actions

  • Login returns JSON with a token, refreshToken and user (filled with user information of the logged in user). You can send credentials here filled with username and password. You can send a JWT with a Authorization Bearer header. https://www.yourdomainhere.nl/actions/jwt-manager/auth/login

  • https://www.yourdomainhere.nl/actions/jwt-manager/auth/logout

  • Send a refresh token in a Authorization Bearer header. Which will return a new JWT based on the refresh token. https://www.yourdomainhere.nl/actions/jwt-manager/jwts/use-refresh

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-10-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固