2017 © Pedro Peláez
 

yii2-extension yii2-auth

RBAC auth functionality for Yii2 framework

image

mg-code/yii2-auth

RBAC auth functionality for Yii2 framework

  • Tuesday, October 4, 2016
  • by mg-code
  • Repository
  • 1 Watchers
  • 2 Stars
  • 614 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 11 % Grown

The README.md

Usage

Once the extension is installed, simply modify your application configuration as follows:, (*1)

return [
    'components' => [
        ....
        'authManager' => [
            'class' => 'yii\rbac\DbManager',
            'defaultRoles' => ['public', 'authenticated'],
        ]
    ],
    'as access' => [
        'class' => 'mgcode\auth\components\AccessControl',
        'app' => 'backend',
        'allowActions' => [
            'site/error'
        ],
        'disallowActions' => [
            'disabled/action',
        ]
    ],
];

See Yii RBAC for more detail., (*2)

The Versions

04/10 2016

dev-master

9999999-dev https://github.com/mg-code/yii2-auth

RBAC auth functionality for Yii2 framework

  Sources   Download

BSD 3-Clause

The Requires

 

by Maris Graudins

extension auth yii2 rbac

04/10 2016

1.0.0

1.0.0.0 https://github.com/mg-code/yii2-auth

RBAC auth functionality for Yii2 framework

  Sources   Download

BSD 3-Clause

The Requires

 

by Maris Graudins

extension auth yii2 rbac