mg-code / yii2-auth
RBAC auth functionality for Yii2 framework
Installs: 4 199
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
This package is auto-updated.
Last update: 2024-12-27 04:54:40 UTC
README
Once the extension is installed, simply modify your application configuration as follows:
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.