Yii Framework Forum: Yii-user & Srbac - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii-user & Srbac is there an integration of these two extensions? Rate Topic: -----

#1 User is offline   Shrek 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 01-April 10

Posted 21 August 2010 - 08:08 AM

Dear all,

Just want to know whether there is any ongoing project of integrating yii-user and srbac modules? Both of them are quite cool, it is a real pity that they cannot coexistent and provide a perfect solution for user management and permission control.

Any one knows?

Thanks.
0

#2 User is offline   lucifurious 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 184
  • Joined: 15-March 09
  • Location:Atlanta, GA.

Posted 21 August 2010 - 09:00 AM

I don't know what is going on with those projects. However I have a side project I am working on that provides a user management foundation (among other things) for Yii. It is called YiiPIS (www.yiipis.com). Code is available on github (github.com/lucifurious). Mirepoix is the user management system. Keep an eye for the release.
0

#3 User is offline   Chris83 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 440
  • Joined: 27-February 10
  • Location:Helsinki, Finland

Posted 21 August 2010 - 04:08 PM

Hello Shrek,

My access control module, Rights, should work with the yii-user module.

Rights can be found at:
http://code.google.com/p/yii-rights/

Check it out if it seems like something you're looking for.
Best regards,
Chris

My contribution to the Yii community:
Account | Yiistrap | Auth | Bootstrap | NordCms | Rights | LESS | SEO | Img

Follow me:
Twitter | GitHub | Bitbucket
0

#4 User is offline   Spyros 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 461
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 23 August 2010 - 12:16 AM

Srbac should be able to be used with any user management module as soon as you provide the User class and it's username and user_id attributes in srbac configuration.
<?php

import'=>array(
        'application.modules.usermodule.models.MyUser',

.....

'modules'=>array(
       'srbac'=>array(
           'userclass'=>'MyUser',
           'userid'=>'my_userid',
           'username'=>'my_username',
?>

0

#5 User is offline   Shrek 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 01-April 10

Posted 23 August 2010 - 09:17 AM

Thanks guys, will have a try~
0

#6 User is offline   krillzip 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 14-January 09
  • Location:Sweden

Posted 23 August 2011 - 04:54 PM

One problem with the yii-user extension is it uses the accessControl filter. Thereby there is double access-checks done in the yii-user controls and other third-party controllers using accessControl.

In order to get around this you can simply do...

<?php 
class Controller extends SBaseController
{
// ...	
	public function filterAccessControl($filterChain){
		$filterChain->run();
	}
}


... This should help everywhere the controllers are extended from SBaseController, and only srbac access checking is done.
//krillzip 8)
0

#7 User is offline   Fire 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 55
  • Joined: 07-August 10

Posted 28 March 2014 - 12:40 AM

Thanks krillzip, however can you explain a little more what this function does?

View Postkrillzip, on 23 August 2011 - 04:54 PM, said:

One problem with the yii-user extension is it uses the accessControl filter. Thereby there is double access-checks done in the yii-user controls and other third-party controllers using accessControl.

In order to get around this you can simply do...

<?php 
class Controller extends SBaseController
{
// ...	
	public function filterAccessControl($filterChain){
		$filterChain->run();
	}
}


... This should help everywhere the controllers are extended from SBaseController, and only srbac access checking is done.

http://b3dmultitech.com - Delivering Education and Business through 3D Gaming Media
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users