承接 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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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