Yii Framework Forum: Authbooster - Yii Framework Forum

Jump to content

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

Authbooster YiiAuth+YiiBooster Rate Topic: ***** 1 Votes

#1 User is offline   robregonm 

  • Expert Yii Developer
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 595
  • Joined: 30-July 09
  • Location:Colombia

Posted 22 May 2013 - 04:10 PM

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.
Ricardo Obregón

YiiFramework en Español - http://yiiframework.co/ - http://yiiframeworkenespanol.org/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx 1.7, MySQL(MariaDB & PerconaDB), PostgreSQL 9, Yii 2, CanJS
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#2 User is offline   robregonm 

  • Expert Yii Developer
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 595
  • Joined: 30-July 09
  • Location:Colombia

Posted 19 June 2013 - 05:07 PM

Just released version 1.0.1.
Includes some speed enhancements and turkish translation.
Download AuthBooster 1.0.1.
Ricardo Obregón

YiiFramework en Español - http://yiiframework.co/ - http://yiiframeworkenespanol.org/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx 1.7, MySQL(MariaDB & PerconaDB), PostgreSQL 9, Yii 2, CanJS
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#3 User is offline   markux 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 106
  • Joined: 26-November 10
  • Location:Grosseto

Posted 26 June 2013 - 07:37 AM

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

Attached File(s)


0

#4 User is offline   robregonm 

  • Expert Yii Developer
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 595
  • Joined: 30-July 09
  • Location:Colombia

Posted 15 August 2013 - 09:34 AM

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.
Ricardo Obregón

YiiFramework en Español - http://yiiframework.co/ - http://yiiframeworkenespanol.org/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx 1.7, MySQL(MariaDB & PerconaDB), PostgreSQL 9, Yii 2, CanJS
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#5 User is offline   ft3561572 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 16-January 13

Posted 18 December 2013 - 10:53 AM

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

Attached File  QQ图片20131218234712.jpg (52.98K)
Number of downloads: 9
0

#6 User is offline   beginner123 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 84
  • Joined: 03-March 14

Posted 19 March 2014 - 06:50 AM

Hi, I have an error while installing this. It returned an error 'Property "CWebUser.user" is not defined.' 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',
	),
);

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