Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Codeigniter 3.x Authentication Library?

With the new Codeigniter 3.0 version what authentication libraries do you use?

  • Flexi auth was very good and robust with great documentation for CI 2.0 but it is old and as I can see it is discontinued. Of course it does not work out of the box with CI 3.0. I have tested it and tried to migrate it to CI 3.0 but as it uses the old ci_sessions schema I have seen that it has a lot work to be made to rewrite all the code parts that use sessions. It seems to work with file sessions and some alterations on its code though.
  • Community auth has a CI 3.0 version but as I have seen, it has many bugs and it is nowhere near reliable at this time. I have tested it thoroughly and it cannot work properly as it has problems with its token jar system and its cookie management. Users cannot login most of the times and it is being used as a whole third-party library at Codeigniter, which personally I don't like as it has a lot of files/folders that are time consuming to be maintained. I would prefer simple CI libraries with 1-2 models like flexi-auth. Although, I wouldn't mind Community Auth's approach if it worked properly.
  • Tank Auth was a reliable solution in the past but not with Codeigniter 3.0 as it has many incompatibilities too. Questions about its compatibility with CI 3.0 were asked but no airplanes in the horizon so far.
  • DX Auth is an old authentication library and as I can see on its github repository, there are some attempts to migrate it on CI 3.0 but I haven't been able personally to test any of them.

So, has anyone successfully integrated (or migrated) any of the previous mentioned libraries on large CI 3.0 web applications? Did you write your own? Did you stick with CI 2 until further CI 3.0 development for that matter?

Update for the down votes

This post about Authentication libraries in codeigniter was very popular and helpful. I believe that posts that help the community in that way should not be closed at least not before some helpful answers. It is not discussed anywhere before and I would really like to see the opinions of more experienced developers for that.

like image 837
sotoz Avatar asked Oct 23 '15 21:10

sotoz


4 Answers

don't let the down votes get ya down.

check out Ion Auth https://github.com/benedmunds/CodeIgniter-Ion-Auth

take a look at the read me, you will have to rename two files for codeigniter 3. otherwise you can see that there are recent changes to the lib. the author Ben Edmunds is one of the four developers on the new codeigniter council. http://www.codeigniter.com/help/about

like image 127
cartalot Avatar answered Nov 07 '22 18:11

cartalot


Please check Dnato System Login
Its Simple, Fast and Lightweight auth codeigniter.

Feature:
-Add user
-Delete user
-Ban, Unban user
-Register new user sent to email token
-Forget password
-Role user level
-Edit user profile
-Gravatar user profile
-Recaptcha by Google
-And much more



Frontend
With Bootstrap Framework.

like image 20
Abed Putra Avatar answered Nov 07 '22 17:11

Abed Putra


For a simple library, I use https://github.com/trafficinc/CodeIgniter-Authit (Authit). It is very simple so I can do a lot of customizations to it or just leave it be.

like image 1
Shybrha Avatar answered Nov 07 '22 17:11

Shybrha


check this library.that is so nice.and with many features

  • login / logout
  • Login DDoS Protection
  • register and signup via email. (send verification code to your email)
  • users can send private message to other users
  • user group
  • create permissions and access control
  • error in other language

this library for CI2. but if you search about this, you can find lib for CI3

http://codeigniter-aauth-test.readthedocs.io

like image 1
ashkan Avatar answered Nov 07 '22 16:11

ashkan