Skip to content

authentication and authorization agnostic url based security framework for codeigniter

Notifications You must be signed in to change notification settings

icchan/kibishii-security

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

:: Kibishii Security ::

# About
Kibishii is a framework for role-based url security in CodeIgniter.
It is implemented as a post controller constructor hook.
It allows separation of application code and 
It is not an Authentication library, It is designed to work with 
other authentication libraries such as Tank Auth or Ion Auth.

# Roadmap
 - build support for ion auth, a3m, and more..
 - build authorization provider for SQL (for libraries which dont have it)
 
 

# Settings
- Tank Auth (http://www.konyukhov.com/soft/tank_auth/)
For Authentication only (must provide your own authorization)

$config['kibishii_login_url']	= 'auth/login';

AND (to get username from session)

$config['kibishii_get_id_from_session'] = TRUE; 
$config['kibishii_user_id_session_field'] = 'username';

OR (to get the username from the tank_auth library)

$config['kibishii_get_id_from_class'] = TRUE;
$config['kibishii_authentication_class']	= 'tank_auth';
$config['kibishii_authentication_method']	= 'get_username';
$config['kibishii_authentication_filename']	= 'libraries/Tank_auth.php';

- Ion Auth (http://github.com/benedmunds/CodeIgniter-Ion-Auth)
For Authentication and Authorization (via groups)

$config['kibishii_login_url']	= 'auth/login';
$config['kibishii_get_id_from_session'] = TRUE; 
$config['kibishii_user_id_session_field'] = 'email';

$config['kibishii_roles_from_session'] = TRUE;
$config['kibishii_roles_session_field'] = 'group';

note: the default groups are 'admin' and 'members'
they should be used in your acl in lower case.


- a3m

About

authentication and authorization agnostic url based security framework for codeigniter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages