5 best authentication libraries for CodeIgniter

Although Codeigniter 2.1 was released few days ago, it still does not has a native authentication library (or maybe never). Are you searching for an authentication library for Codeigniter? Here, I would like to suggest several libraries which can make your life easier. Why do you want to create a new library or code the authentication system by yourself if there is a superb one? On top of that, it is free!

CodeIgniter Logo

Below are 5 best authentication libraries for CodeIgniter (from my observation). You can give them a try! Most of them are compatible with CodeIgniter 2.1 (I guess, hehehe :D ). However, please keep in mind that each library maybe offers different features. Hence, the security features can be varies.


1. AG Auth

AG Auth is written by Adam Griffiths. He is an accomplished web applications developer based in the Welsh Capital city of Cardiff. You can view AG Auth user guide at Adam Griffiths website.

Some killer features of AG Auth:

  • Secure remember me
  • Strong username and password policy server side
  • Maximum number of failed login attempts, security against DDoS or Bruteforce attacks


2. Bit Auth

Bit Auth is written by Dan Montgomery. It is a group-based authentication and permissions system that uses bitwise operation to allow you, as a developer, to easily control access within your application.

Features which are in place: password aging, complexity rules, and completely customizable user fields. See Bit Auth main page for full documentations.


3. DX Auth

It’s based on CL Auth 0.2.5 beta developed by Jason Ashdown. The goal is to enable you to easily include secure and easy to use authentication library to your project, while giving you the flexibility to choose from simple authentication system to full fledged authentication system.

Some cool features of DX Auth:

  • Ban user
  • Last login IP address and time
  • Role based (admin, user, moderator, etc). Inheritance also supported
  • Custom permission for each role
  • Login attempt (optional). You can use this to display catpcha after specified try to login to prevent bot.
  • Simple admin panel

Visit DX Auth documentation page for more.


4. Ion Auth

Ion Auth is currently maintained by Ben Edmunds. It is a simple and lightweight authentication library for the CodeIgniter framework.


5. Tank Auth

Tank Auth is an authentication library for PHP-framework CodeIgniter. It’s based on DX Auth, although the code was seriously reworked.

There are several other authentication libraries. You can check them out at CodeIgniter Wiki page. You may want to integrate one of this library with the blog that you have created using CodeIgniter. I’ll try to publish a tutorial on this topic as soon as possible. :)


Pisyek Kumar is from Terengganu, Malaysia. A web developer extraordinaire, highly motivated on projects that involves utilization of his skills.

Tagged with: , ,
Posted in Blog, Framework
5 comments on “5 best authentication libraries for CodeIgniter
  1. Lenny V says:

    A new authentication for CodeIgniter is Community Auth. http://community-auth.com It seems good, and easy to use.

    I tried DX, and it has many features that I don’t use. Some of these authentication systems are too hard for me to use.

  2. Prakash says:

    Before i try using the above, I would like to ask one question. I use WordPress for blogging and planning to use Codeigniter for my web application. Is there a chance to use some kind of mechanism to use the login credentials from wordpress with any of the above authentication library. My goal is to reuse the previously registered WordPress users details in My web application. Suggest with some ideas.
    Prakash recently posted..Dynamically adding HTML components using JavaScriptMy Profile

  3. Can you please confirm me which one best for Ci latest version



Send your email to pisyek at gmail dot com.