Authbooster

AuthBooster is YiiAuth for YiiBooster.

If you want a very powerful AuthManager GUI and use very powerful Bootstrap extension(YiiBooster), this is the extension for you.

Since @cniska decided to move to yiistrap extension, then Auth is not compatible with YiiBooster.

Feel free to download version 1.0.0. and report any bugs you find.

Also, I’ll keep updated this extension with the latest commits done by @cniska.

Enhancements and suggestions are welcomed.

Just released version 1.0.1.

Includes some speed enhancements and turkish translation.

Download AuthBooster 1.0.1.

Great works!!

I send you a patch to AuthFilter.php to set action allowed in the controller (like Rights extension does).

To use this feature you have to add this function to components/Controller.php


/**

	* @return string the actions that are always allowed separated by commas.

	*/

	public function allowedActions()

	{

		return '';

	} 

and if you want to allow ie view and admin action to all users, you have to add this on MyController.php:


        public function allowedActions()

	{

		return 'view,admin';

	}

If you want to allow all actions return ‘*’;

bye

Markux

A similar functionality is already built-in (Since this extension is based on Auth, which is based on Rights).

Nevertheless, looks very useful, could you please add a pull request in GitHub.

Regards.

I would like to add a search bar

Easy to find users

Then give them authorization

Can you understand me

Thank you for your extension

It is great

5004

QQ图片20131218234712.jpg

Hi, I have an error while installing this. It returned an error [color="#FF0000"]‘Property “CWebUser.user” is not defined.’[/color] Could u please help me? Thanks in advance.




Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');

return array(

    'theme'=>'bootstrap', // requires you to copy the theme under your themes directory

	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',

	'name'=>'Course & Timetabling System',


	// preloading 'log' component

	'preload'=>array('log',

	    'bootstrap',

    ),


	// autoloading model and component classes

	'import'=>array(

	    'application.extensions.KEmail.KEmail',

		'application.helpers.*',

		'application.models.*',

		'application.components.*',

	),


	'modules'=>array(

		// uncomment the following to enable the Gii tool

		'userGroups'=>array(

        // accessCode can be changed

        'accessCode'=>'123456',

        // salt can be changed

        'salt'=>'123456',

           ),

		

		'auth' => array(

  'strictMode' => true, // when enabled authorization items cannot be assigned children of the same type.

  'userClass' => 'User', // the name of the user model class.

  'userIdColumn' => 'id', // the name of the user id column.

  'userNameColumn' => 'name', // the name of the user name column.

  'defaultLayout' => 'application.views.layouts.main', // the layout used by the module.

  'viewDir' => null, // the path to view files to use with this module.

),

		

		'gii'=>array(

			'class'=>'system.gii.GiiModule',

			'password'=>'abc',

			'generatorPaths'=>array(

                'ext.giiplus',

            ),

			// If removed, Gii defaults to localhost only. Edit carefully to taste.

			'ipFilters'=>array('127.0.0.1','::1'),

		),

	),	


	// application components

	'components'=>array(

	    'bootstrap' => array(

        'class' => 'ext.bootstrap.components.Bootstrap',

    ),			

		'user'=>array(

			// enable cookie-based authentication

			//'allowAutoLogin'=>true,

			//'class'=>'userGroups.components.WebUserGroups',

			'user' => array(

            'class' => 'auth.components.AuthWebUser',

            'admins' => array('admin', 'foo', 'bar'), // users with full access

         ),

       ),

	   

		'email'=>array(

            'class'=>'application.extensions.KEmail.KEmail',

            'host_name'=>'smtp.gmail.com',

            'user'=>'yapsiongyee@gmail.com',

            'password'=>'siong310890',

            'host_port'=>465,

            'ssl'=>'true',

        ), 

		'image'=>array(

          'class'=>'application.extensions.image.CImageComponent',

            // GD or ImageMagick

            'driver'=>'GD',

            // ImageMagick setup path

            'params'=>array('directory'=>'/opt/local/bin'),

        ),

		// uncomment the following to enable URLs in path-format

		

		'urlManager'=>array(

			'urlFormat'=>'path',

			'rules'=>array(

				'<controller:\w+>/<id:\d+>'=>'<controller>/view',

				'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',

				'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',

			),

			   // 'showScriptName'=>false,

		),

		

		'authManager' => array(

		'class'=>'auth.components.CachedDbAuthManager',

  'cachingDuration'=>3600,

        ),

        'behaviors' => array(

        'auth' => array(

          'class' => 'auth.components.AuthBehavior',

            ),

          ),

		

		/*

		'db'=>array(

			'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',

		),

		*/

		

		// uncomment the following to use a MySQL database

		

		'db'=>array(

			'connectionString' => 'mysql:host=localhost;dbname=testdb',

			'emulatePrepare' => true,

			'username' => 'root',

			'password' => '',

			'charset' => 'utf8',

		),

		

		'errorHandler'=>array(

			// use 'site/error' action to display errors

			'errorAction'=>'site/error',

		),

		'log'=>array(

			'class'=>'CLogRouter',

			'routes'=>array(

				array(

					'class'=>'CFileLogRoute',

					'levels'=>'error, warning',

				),

				// uncomment the following to show log messages on web pages

				/*

				array(

					'class'=>'CWebLogRoute',

				),

				*/

			),

		),

	),


	// application-level parameters that can be accessed

	// using Yii::app()->params['paramName']

	'params'=>array(

		// this is used in contact page

		'adminEmail'=>'yapsiongyee@yahoo.com',

	),

);