• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DX Auth 1.0.6 (Authentication library)

#1
[eluser]dexcell[/eluser]
Introduction
DX Auth is an authentication library for Code Igniter. It's goal 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.

DX Auth is also build with internationalization in mind, so every string is available in language file. (Except the examples because that is your code, not the library).

It's based on CL Auth 0.2.5 beta developed by Jason Ashdown.

What is the feature of DX Auth?

* Basic auth (Login, logout, register, change password).
* Remember me.
* Login using username or email address or both (depend on config settings).
* Forgot password.
* Ban user.
* Last login IP address and time (optional).
* Email activation (optional).
* User Profile (optional).
* Role based (admin, user, moderator, etc). Inheritance also supported (optional)
* Restrict page based on URI and role (optional).
* Custom permission for each role (optional).
* Login attempt (optional). You can use this to display catpcha after specified try to login to prevent bot.
* Event feature (For example: You can put your own code like PM welcome message after user activated, etc).
* Captcha (optional, native and reCAPTCHA is available).
* Simple admin panel (So you can customize it, include it into your own admin panel, or delete if you don't need it).
* Most of the feature is optional, means you can turn it off in config file, delete it, or just don't use it.


What is changed since CL Auth 0.2.5

If you are ever using CL Auth before, you might want to know what's changed since CL Auth 0.2.5

* Bug fixes.
* Add and change function.
* Changed code structure.
* Group changed to role.
* Compatible with CI bundled session without hacking it.
* Added language file for internationalization.
* All function named lower_case instead of camelCase.
* Source code writing following CI User guide.
* Commented source code so you can follow along.
* Code Igniter style user guide with detailed explanation.
* And other that i don't remember Smile.

DX Auth is tested in CI 1.7.0, but should be working for above version.

DX Auth is licensed under MIT license.

Here is the link:

Documentation (Very well documented)

Download link

Simple example on how to use DX Auth (See how easy to use it)

Version 1.0.6 (See how to upgrade below)

Release Date: January 3, 2009

It's recommended to download the latest version.

#2
[eluser]dexcell[/eluser]
Change log:

http://dexcell.shinsengumiteam.com/dx_au...gelog.html

Upgrade

http://dexcell.shinsengumiteam.com/dx_auth/upgrade.html

User guide download

http://dexcell.shinsengumiteam.com/dx_au..._guide.zip

If user guide is updated, you may need to clear your browser cache to see the all the changes in user guide.

Note:

Even tough user guide is saying DX Auth User Guide Version 1.0,
it was the last version of user guide since i don't have time to change it.

User guide version always updated according to DX Auth version in download page.

#3
[eluser]RHAngel[/eluser]
Very nice and well documented, will try this library in my current project.

First remarks:
1. You need to move out to language file all strings like 'Remember me','Username','Confirmation Code','You are already logged in.','You have successfully registered.' etc. Without that your library is not "build with internationalization in mind".
Example:
Code:
$val->set_rules('username', 'lang:auth_login_username', 'trim|required|xss_clean');

2. I have all my user related tables in separeted database. So construction like
Code:
// Load Database
$this->ci->load->database();
is not good for me. Maybe you should make something like:
Code:
$this->ci->load->database($this->ci->config->item('DX_database'));

3. Check this:
Code:
$this->ci->load->plugin('DX_captcha');
There is no such plugin in installation.

4. I did not found any line where
Code:
$this->captcha_login
is used to switch on/off captcha in login page.

At first glance library is too crude for everyday use.

#4
[eluser]thecancerus[/eluser]
dexcell auth plugin sounds interesting, almost covers everything i need for my current project.. i will try and let you know.

#5
[eluser]dexcell[/eluser]
[quote author="RHAngel" date="1228150604"]Very nice and well documented, will try this library in my current project.

First remarks:
1. You need to move out to language file all strings like 'Remember me','Username','Confirmation Code','You are already logged in.','You have successfully registered.' etc. Without that your library is not "build with internationalization in mind".
Example:
Code:
$val->set_rules('username', 'lang:auth_login_username', 'trim|required|xss_clean');

2. I have all my tables related to users in separeted database. So construction like
Code:
// Load Database
$this->ci->load->database();
is not good for me. Maybe you you should make something like:
Code:
$this->ci->load->database($this->ci->config->item('DX_database'));

3. Check this:
Code:
$this->ci->load->plugin('DX_captcha');
There is no such plugin in installation.

4. I did not found any line where
Code:
$this->captcha_login
is used to switch on/off captcha in login page.

At first glance library is too crude for everyday use.[/quote]

1. Auth.php is an example, meaning it's not the library, so it's your code, you need to create your application language file.

2. Good idea. I'm gonna add it later.

3. Sorry i've forgot adding it into zip download. Anyways i add it now, you can try to download it again. please let me know if something going wrong because in here, all it's going fine Smile thanks.

4. Do you mean in DX_Auth.php. Yes, see dx_config.php in the Helper configuration part. there is an explanataion there

Quote:At first glance library is too crude for everyday use
Well, that's why in DX Auth most of them can be turn off as option. so you can only use basic auth. Then you have scalability if you want to have more feature just go to config and turn the feature on.

#6
[eluser]dexcell[/eluser]
[quote author="thecancerus" date="1228151353"]dexcell auth plugin sounds interesting, almost covers everything i need for my current project.. i will try and let you know.[/quote]

Thanks, please download from link once again as before i forgot to add some file,
If the example doesn't work please let me know because it's working fine here.

#7
[eluser]RHAngel[/eluser]
Oh, I'm understand with Auth.php now, will dig only DX_Auth and models then. SmileI try to use your library with PostgreSQL, if you don't mind. Smile

#8
[eluser]dexcell[/eluser]
[quote author="RHAngel" date="1228160074"]Oh, I'm understand with Auth.php now, will dig only DX_Auth and models then. SmileI try to use your library with PostgreSQL, if you don't mind. Smile[/quote]

See here to know which part is the DX Auth library, and which is not

http://dexcell.shinsengumiteam.com/dx_au...index.html

I just updated it, you might need to press F5 in your browser.

I don't mind and thanks for digging the code, maybe you can give advise or find bugs.

#9
[eluser]trice22[/eluser]
Thanks for your contribution—I'll give it a try.

Could anyone put up a comparison matrix for all the auth system we have now? —I've lost track long time ago. :cheese:

—trice

#10
[eluser]dexcell[/eluser]
Updated the download file because there is typos and updated thing in user guide.

Added to readme.txt

After you download an extract the zip file DX Auth library file included in these folder:
-captcha folder
-system\plugins\ folder
-application\config\ folder
-application\helpers\ folder
-application\language\ folder
-application\libraries\ folder
-application\models\ folder

Except files above, everything is only examples, or can be deleted.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.