luyadev/luya-module-admin-usertoken

dev-master 2020-06-25 07:51 UTC

This package is auto-updated.

Last update: 2020-06-25 07:51:27 UTC


README

LUYA Logo

LUYA Admin User Token Module

LUYA Tests Maintainability Test Coverage

Extend the LUYA Admin by providing app's based access token accessible through an 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

  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).