Wiki

Articles tagged with "rbac", sorted by date (updated)X
Displaying 1-10 of 14 result(s).

RBAC Super Simple with Admin and User

Updated 17 days ago by evercodeTutorials6 comments – viewed 8,046 times – ( +7 / -3 ) – version 2.0
One of the common requests I see in the forum is how to implement RBAC. While you can implement Yii 2's built-in RBAC, that might be too much for developers who are just starting with Yii 2 or have simpler needs. Sometimes you are looking for a fast solution and just want two flavors, user and admin. And even if you will eventually need more, you can use these methods as a starting point for developing your own features or move on to Yii 2's RBAC.

How to use Expression in default AccessControl to allow only the owner to do some action

Updated 2 months ago by DineshRHow-tos1 comment – viewed 19,664 times – ( +7 / -1 ) – version 1.1
Hi Everyone

Getting to Understand Hierarchical RBAC Scheme

Updated 3 months ago by rAWTAZTutorials20 comments – viewed 77,242 times – ( +60 ) – version 1.1
Authentication and Authorization is a good tutorial. Among other topics, it describes basic aspects of Yii's RBAC implementation. But however hard I read the tutorial, I couldn't understand how exactly the hierarchy works. I found how to define authorization hierarchy, how business rules are evaluated, how to configure authManager, but almost nothing about how I should build my hierarchy, in what sequence its nodes are checked, when the checking process stops and what would be the checking result.

MongoDB's RBAC support class extending BaseManager

Updated 4 months ago by edoardo849How-tos1 comment – viewed 2,760 times – version 2.0
Here's a possible implementation for MongoDb of the RBAC standard. Create a class "MongoDbManager" in common\components and modify your params.php file like this:
tags: mongodb, rbac, yii2

Role Management

Updated 5 months ago by Dency G BHow-tos0 comments – viewed 4,567 times – ( +2 ) – version 2.0
Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.
tags: rbac, yii2

How to use bizRules in standard accessControl filter

Updated 8 months ago by redguyHow-tos8 comments – viewed 9,494 times – ( +3 ) – version 1.1
I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.

shortcut/usefull access roles methods RBAC

Updated 8 months ago by Kostas Apazidis (KonApaz)Tutorials5 comments – viewed 2,554 times – ( +1 ) – version 1.1
These are functions that I used very often, may helps you!

Add information to Yii::app()->user by extending CWebUser (better version)

Updated 10 months ago by Anas AbuDayahTutorials5 comments – viewed 27,193 times – ( +5 / -1 ) – version 1.1
I found a better solution.
tags: Yii, user, rbac

Yet another implementation of CPhpAuthManager.

Updated about a year ago by seenivasanHow-tos3 comments – viewed 8,875 times – ( +8 / -1 ) – version 1.1
In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at main application level to controller level. This way we have pulverised auth data for entire site into smaller units. Finally we are going to look at couple of examples.

Implementing a Flat User Access System

Updated about a year ago by TrejderHow-tos1 comment – viewed 8,186 times – ( +9 ) – version 1.1
This article shows a quick and easy way to implement flat user access control system. Flat means, that user access is controlled by level only, which is solution exactly opposite to complex RBAC access systems.