budanoff/yii2-synch-user

Расширение для синхронизации пользователей ИАС Мониторинг (для подсистем программного комплекса))

Installs: 357

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2020-04-03 04:44 UTC

This package is auto-updated.

Last update: 2024-02-29 03:57:48 UTC


README

Расширение для синхронизации пользователей ИАС Мониторинг (для подсистем программного комплекса))

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist budanoff/yii2-synch-user:dev-master

to the require section of your composer.json file.

Usage

update config file web.php:

    'modules'=>[
            ...
            'synchuser' => [
                'class' => 'budanoff\synchuser\Module',
                'secret_key' => ''//insert secret key
            ],
            ...
        ],

Make the route public:

    'as access' => [
            'class' => '',
            'allowActions' => [
                ...
                'synchuser/*'
            ]
        ],

You can customize roles for user. At block 'synchuser' add array like this:

'role' => [
                "podved" => "user",
                "other_podved" => "user",
                "dep10" => [
                    "dep10",
                    "user"
                ]
            ]

for reload role of user everytime:

'reload_role' => true,