定制 luyadev/luya-module-admin-usertoken 二次开发

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

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

luyadev/luya-module-admin-usertoken

最新稳定版本:1.3.1

Composer 安装命令:

composer require luyadev/luya-module-admin-usertoken

包简介

Extend the LUYA Admin by providing app's which then LUYA Admin users can authenticated through the API.

README 文档

README

LUYA Logo

LUYA Admin User Token Module

LUYA Tests Maintainability Test Coverage

Extend the LUYA Admin by providing app's which then LUYA Admin users can authenticated through the API.

LUYA Admin Interface

Installation

Install the extension through composer:

composer require luyadev/luya-module-admin-usertoken

add to the config

'modules' => [
    //...
    'usertoken' => [
      'class' => 'luya\admin\usertoken\Module',
    ]
]

bootstrap the app:

'bootstrap' => [
    'luya\admin\usertoken\Bootstrap',
]

Run the import command afterwards:

./luya migrate
./luya import

Usage

  1. Create an App in the Admin UI. The App identifier is used for login.
  2. Use the APIs to make a Login Request for a given User (POST request to /admin/api-usertoken-login with fields email, password and app).

Caveats

When a user is authenaticated and an access token is generated, all API requests with this token will be threated as this user. Also in terms of "language". You are not able to force a certain language with f.e. _lang since the user Admin UI Settings will be loaded. In order to change that behavior and force a certain fixed language see Module::$forceUserLanguage property.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固