Jump to content
Larry Ullman's Book Forums

Suggestions/extensions For Simplifying Rbac (Access Control) ?


ewbarnard
 Share

Recommended Posts

Everything about Yii is so straight-forward that I'm surprised that access control continues to appear difficult and complicated to me. So far I've avoided any need to do any authentication or user login (because the sites are locked down to an internal network). That will soon change.

 

I expect to need a number of user logins, with a small number of roles. I'll have 10-20 logins spread across 6-8 roles. It's very small scale in that sense.

 

1. Does anyone have recommendations for an RBAC user management extension? I'd like the client to be able to manage users, and assignment of roles to users, without programmer intervention.

 

2. It seems like I should be able to implement a simple strategy for tying either entire controllers or specific controller actions to those roles. I'm not sure what that strategy is, but I haven't tried to do this yet either. Practice makes perfect!

Link to comment
Share on other sites

  • 2 weeks later...

I added some yii extensions in the beginning like YiiBooster but later decided to pull it out later, the problem is they are only maintained for so long then you are left to handle it for yourself. I think using extensions also depends on the size of your project, if you are building something small then using them is okay but if you are building something large which will need continually updated i think using your own code is better. I try to write my own code for everything i really hate to use extensions i like to know how things are working exactly and don't like to depend on others unless of course they have a lot of reputation and people to backup like using the Yii Framework does. It would be impossible for one to write a framework plus develop a large scale site both of these are separate issues.

 

If you are looking to use others extensions you need to make sure they are actively maintained and updated i think that is the most important issue in regards to them.

Link to comment
Share on other sites

 Share

×
×
  • Create New...