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 Admin User Token Module
Extend the LUYA Admin by providing app's which then LUYA Admin users can authenticated through the API.
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
- Create an App in the Admin UI. The App identifier is used for login.
- Use the APIs to make a Login Request for a given User (POST request to
/admin/api-usertoken-loginwith fieldsemail,passwordandapp).
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
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-26

