Part of the EllisLab Network
   
1 of 36
1
FreakAuth_light authentication library/admin application released!
Posted: 01 February 2007 07:59 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

Well guys, after long… here we go!

I released an advanced alpha version of FreakAuth_light for all of you to enjoy (hopefully) and testing.

The official website for downloads and documentation is: 4webby.com/freakauth

The documentation you will find is still under developement, but I tried to comment the code as much as possible!

I also included a kinda installation-checkin in the release, so that you can make sure everything is set ok for FreakAuth_light to work, and work safely!

This release will be suitable for not extremely complex applications, where you will need to distinguish among:
- superadmin (full control of the API)
- admin (you can let him do what you want)
- registered users
- guests

+ you can set your own custom roles!

FreakAuth_light includes:
——————————————————————
FRONTEND

——————————————————————
- login/logout
- user registration
- forgotten password
- change password
——————————————————————-
ADMINISTRATION BACKEND

——————————————————————-
- list/detail/add/edit/del admins
- list(paginated)/detail/add/edit/del users
- an example on how to implement the backend with other controllers (i.e. blog posts ect.)
- a kinda advanced CRUD that let’s you have custome user profile fields + validation rules in backend

——————————————————————-
EXTRAS

——————————————————————-
=> the applications uses nice dynamic flash messages!!
——————————————————————-

Let’s say that FreakAuth_light is much better in terms of performance than Auth that just for a login runs 9 queries!
And, more important, more secure!

I also started implementing the evolution to FreakAuth, that will hopefully have ACL!

I thought that after getting a lot from the community, it was finally the time to give something back!

Test it and post your feedbacks!

********************************************************************************
*FreakAuth_light CHANGELOG
********************************************************************************
FreakAuth_light 1.1 (17/07/2007)
=> forum thread
- added easy extendability
- new assets structure
- direct registration
- plus much more (check out the [http://www.ciforge.com/trac/freakauth/wiki/FAL_ChangeLog_1.1]complete changelog[/url])

FreakAuth_light 1.0.4 (16/05/2007)
=> forum thread
- corrected some not harmfull things about FAL_1.0.3
- improved captcha security
- abstracted from controller naming: you can now build different controllers for different methods (login, logout etc)
- plus much more (check out the complete changelog)
- for upgrading instructions see included file or have a look at upgrading instructions or see included file

FreakAuth_light 1.0.3 (03/05/2007)

- corrected some not harmfull bugs
- improved security
- abstracted from template dependency: you can use it in every templating system
- plus much more (check out the complete changelog)

FreakAuth_light 1.0.2-Beta (19/02/2007)

- changed function name view() to show() in controllers/admin/admins.php for PHP4 compliance
- changed function name view() to show() in controllers/admin/users.php for PHP4 compliance
- changed the links in the relative views of the above controller
- sorted out pagination problem in function index() in controllers/admin/users.php
- added method belongsToGroup() in application/libraries/freakauth_light.php
- added helper belongsToGroup($group=null, $only=null) in application/helpers/freakauth_light_helper.php
- made some small changes in the application/helpers/freakauth_light_helper.php
- Changed languages array prefix from ‘FreakAuth_’ to ‘FAL_’
- other minor code cleanup

FreakAuth_light 1.0.1-Beta

- made it not mod_rewrite dependent (works also without mod_rewrite)
- merged admin and user table (changed DB structure)
- made it PHP4 compliant
- eliminated simplepie plugin and helper
- made template directory customisable
- added custom roles
- improved flexibility in method check() of the FreakAuth_light library
- other minor code cleanup

FreakAuth_light 1.0.2-alpha

- sorted out small error in controller adm.php
- sorted out validation rules problem in library FreakAuth_light #1133 & #1137
- update the userprofile model (added method deleteUserProfile($id))
- made controllers/admin/users.php independent from DB tables relations (Foreign keys)
- updated DB schema (deleted relations) and converted all tables fro InnoDB to MyISAM

FreakAuth_light 1.0.1-alpha

- sorted out problem in .htacess file
- sorted out problem in library FreakAuth_light for admin login line #304
- sorted out a CSS problem for registration with Mozilla 1.5
*********************************************************************************

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 01 February 2007 08:00 AM   [ Ignore ]   [ # 1 ]  
Grad Student
Rank
Total Posts:  81
Joined  10-31-2006

This really looks great. Thanks danfreak!

 Signature 

Design is not abundance of simplicity,
it is absence of complexity.

________________________________________
Need a template engine for CI? Try YATS!

Profile
 
 
Posted: 01 February 2007 10:38 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Avatar
Total Posts:  6
Joined  01-19-2007

Now we’re cooking!

Profile
 
 
Posted: 01 February 2007 12:39 PM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  15
Joined  03-01-2006

Great library ut everytime I want to login as a superadmin or admin, after the submit I get this:

A PHP Error was encountered
Severity
: Notice

Message
: Undefined property: stdClass::$banned

Filename
: libraries/Freakauth_light.php

Line Number
: 304

A PHP Error was encountered
Severity
: Warning

Message
: Cannot modify header information - headers already sent by (output started at C:\VertrigoServ\www\tiremax\system\libraries\Exceptions.php:164)

Filename: helpers/url_helper.php

Line Number
: 447

A bug?
My fault?

Greetings,

Bartvdb

Profile
 
 
Posted: 01 February 2007 12:59 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  75
Joined  01-08-2007
bartvdb - 01 February 2007 12:39 PM

Great library ut everytime I want to login as a superadmin or admin, after the submit I get this:

A PHP Error was encountered
Severity
: Notice

Message
: Undefined property: stdClass::$banned

Filename
: libraries/Freakauth_light.php

Line Number
: 304

A PHP Error was encountered
Severity
: Warning

Message
: Cannot modify header information - headers already sent by (output started at C:\VertrigoServ\www\tiremax\system\libraries\Exceptions.php:164)

Filename: helpers/url_helper.php

Line Number
: 447

A bug?
My fault?

Greetings,

Bartvdb

I am experiencing the same errors. It looks like it’s a bug.

On a sidenote, for a light package, it looks pretty heavyweight to me wink

Thanks for the release. Hopefully these bugs will be fixed any time soon so I can further play around with it.

Profile
 
 
Posted: 01 February 2007 01:26 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

I’ll check it out lata.
I checked it now, but it works for me so I’ll need further investigation.

I just noticed a small thing:

change the following line of the .htacces file

RewriteRule ^(.*)$ /index.php/$1 [L]

with the following

RewriteRule ^(.*)$ index.php/$1 [L]

and then in your system/application/config/config.php check to have the LAST trailing SLASH

$config['base_url']    = "http://www.YOURDOMAIN.com/";

siric - 01 February 2007 12:59 PM

On a sidenote, for a light package, it looks pretty heavyweight to me wink

 

Well Siric, you can simply delete all the backend, images etc + views etc if you don’t need the other stuff.
I think it’s just handy to have everything in place: you are always free to rewrite the admin BACKEND.

Back to you lata guys I gotta go.

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 02 February 2007 03:26 AM   [ Ignore ]   [ # 6 ]  
Grad Student
Avatar
Rank
Total Posts:  70
Joined  08-26-2006

this is fantastic. i will give it a go tonight - thansk for all ur hard work.

Profile
 
 
Posted: 02 February 2007 03:32 AM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

Hey guys,

I’ll try to install the FreakAuth_light from scretch on CI 1.5.1

If I’ll encounter problems I’ll release a FreakAuth_light_1.0.1-alpha this morning.

So far only two people out of 63 downloads lamented some inconvenients.

Please be so king to post your comments/problems/bugs here so that we will be able to get to a beta release next week!

Dan

grin

PS: sorry for the many spelling mistakes in the userguide: I’ll correct them as well!

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 02 February 2007 05:34 AM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006
bartvdb - 01 February 2007 12:39 PM

Great library ut everytime I want to login as a superadmin or admin, after the submit I get this:

A PHP Error was encountered
Severity
: Notice

Message
: Undefined property: stdClass::$banned

Filename
: libraries/Freakauth_light.php

Line Number
: 304

A PHP Error was encountered
Severity
: Warning

Message
: Cannot modify header information - headers already sent by (output started at C:\VertrigoServ\www\tiremax\system\libraries\Exceptions.php:164)

Filename: helpers/url_helper.php

Line Number
: 447

A bug?
My fault?

Greetings,

Bartvdb

A bug!

I’m now checking the FreakAuth_light_1.0-alpha and I’ll release a FreakAuth_light_1.0.1-alpha after finishing my check.


For those having already installed version 1.0-alpha Change line 304

from

$banned = $row->{'banned'};

to

(isset($form) AND $form=='admin') ? $banned = 0 : $banned = $row->{'banned'};

Dan

PS: I also found a problem with new user registration and I’m sorting it out

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 02 February 2007 05:58 AM   [ Ignore ]   [ # 9 ]  
Summer Student
Total Posts:  9
Joined  09-13-2006

Why are you using InnoDB tables?

 Signature 

Brazilian programmer
http://engcomputacao.com.br

Profile
 
 
Posted: 02 February 2007 07:54 AM   [ Ignore ]   [ # 10 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

Hey guys I just released FreakAuth_light 1.0.1-alpha

It basically solves the problems found so far.

********************************************************************************
*FreakAuth_light CHANGELOG
********************************************************************************

FreakAuth_light 1.0.1-alpha

- sorted out problem in .htacess file
- sorted out problem in library FreakAuth_light for admin login line #304
- sorted out a CSS problem for registration with Mozilla 1.5
*********************************************************************************

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 02 February 2007 10:05 AM   [ Ignore ]   [ # 11 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006
Rodrigo Ribeiro - 02 February 2007 05:58 AM

Why are you using InnoDB tables?

What’s wrong with InnoDb tables?

Well I set a relation among the ‘id’ field of the user table and the ‘id’ field of the user_profile table

I set the ‘id’ field of the user table as FOREIGN KEY of the ‘id’ field of the user_profile table: the relation is CASCADE ON DELETE

When you enable the user_profile feature in the freakauth_light config , every time a user registers, or you create a user from the admin panel, you will see an entry in user table with id = X and an entry in user_profile table with id=X.

The CASCADE ON DELETE relation comes into work when you delete an user from the admin panel: it authomatically deletes user with id=X in user table and the corresponding entry with id=X from the user_profile table.

For more infos have a look here: InnoDB FOREIGN KEY Constraints

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 02 February 2007 12:15 PM   [ Ignore ]   [ # 12 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  208
Joined  06-12-2006
danfreak - 02 February 2007 10:05 AM

What’s wrong with InnoDb tables?

Well InnoDB are not supported by many hosting providers confused

Profile
 
 
Posted: 02 February 2007 02:22 PM   [ Ignore ]   [ # 13 ]  
Summer Student
Total Posts:  9
Joined  09-13-2006

You could use CASCADE in MyISAM tables too… InnoDB was designed to offer maximum performance, consuming system resources. Does your application need it?

 Signature 

Brazilian programmer
http://engcomputacao.com.br

Profile
 
 
Posted: 02 February 2007 03:11 PM   [ Ignore ]   [ # 14 ]  
Research Assistant
RankRankRank
Total Posts:  362
Joined  10-02-2006

adm.php

218: $query = $this->db->get('FA_admin');

Should be:

218: $query = $this->db->get('fa_admin');

Crimp on!

 Signature 

CI version?
From SVN.

Profile
 
 
Posted: 02 February 2007 03:23 PM   [ Ignore ]   [ # 15 ]  
Summer Student
Total Posts:  25
Joined  12-28-2006

I’m gonna be trying this later today with PostgreSQL… sounds like I got my work cut out for me. grin

Profile
 
 
   
1 of 36
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 66430 Total Logged-in Users: 37
Total Topics: 84793 Total Anonymous Users: 4
Total Replies: 455055 Total Guests: 223
Total Posts: 539848    
Members ( View Memberlist )
Newest Members:  Dylan1978X_franbaguasllogocsaturkeyPeter BryanttherendStudioGeorgiaJZeerfedeghe