User Management in CodeIgniter 2.1.0 [duplicate] - codeigniter

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How should I choose an authentication library for CodeIgniter?
What is the best library for User Registration / Authentication / Management for CodeIgniter 2.1.0?
Thanks!!

Tank Auth and IonAuth are both great for all of the above in my opinion. Each has their own pros and cons. Most notably for you will be the documentation. IonAuth is heavily documented, and well commented throughout. Tank Auth is lightly documented, and is very well commented throughout. I personally prefer IonAuth, and have used it in several projects. If you want some additional modifications to make it even easier to work with, then check out this article here.

In my opinion IonAuth for user registration and authentification and Zend_Acl for authorization (Access Control List).

Thats your choice dude, If you take an ORM approach neither IONAuth nor TANK will suffice.
Choose a database structure throughout your project's then decide, If that means a custom Auth lib, then so be it....

Related

Call to JFactory::getApplication()->login changes user's password

I have followed this tutorial to create a component in Joomla 2.5.19. I have modified the code a bit to suit my needs. I have changed
$response = $auth->authenticate($credentials, $options);
to
JFactory::getApplication()->logout(null, $options);
$authorized = JFactory::getApplication()->login($credentials, $options);
But this call to login changes user's password. Does any one have any clue, why it is behaving like this.
Note: I have also installed latest version of JomSocial.
Thanks,
The password itself is not changing, what is happening is that the method hashing of the password prior to storing in the the database has changed. Users with existing passwords with the old hashing have their hashing changed when they login. If you use the JUser API with your authentication system this will work seamlessly, you would only know that it happens if you look in the database.
I only briefly reviewed the link you posted with the tutorial, and from first glance this is not the correct way to achieve external authentication in Joomla. You should write an authentication plugin which hooks into core events and seamlessly integrated with the framework.
Although you could most definitely make this approach "work," in the long run, by working against the framework; maintaining the code could become more and more difficult.
The link below is for Joomla 3.2, but the concepts apply. I would recommend reverse engineering existing core authentication plugins.
If you choose to continue with the component approach check out the com_users login controller and model for his they handle login posts. Both should have relevant methods.
http://docs.joomla.org/J3.2:Creating_an_Authentication_Plugin_for_Joomla
I figured it out with the help of Elin...
Turned out to be a rehash... In Joomla 2.5.19, (libraries/joomla/user/helper.php) JUserHelper::verifyPassword() is actually rehashing and updating the password in database.
Thank you #Elin. Can you submit you comment as answer so I can accept it :)

How to implement authentication in ZF2

There are a couple of examples online about how to write plugins implementing authentication in Zend Framework 2, but no clear information on how to use them in an application. Does anyone have a working (complete) ZF2 app that implements a simple login screen?
Check this out:
http://blog.evan.pro/getting-started-with-the-zf2-skeleton-and-zfcuser
it's a good example of how to get the standard skeleton application to work with the zfcUser module to provide exactly what you need.
I think this will be helpful:
http://samsonasik.wordpress.com/2012/10/23/zend-framework-2-create-login-authentication-using-authenticationservice-with-rememberme/
http://framework.zend.com/manual/2.0/en/modules/zend.authentication.intro.html
Start with that....i was sailing in the same boat as you were when i started off.. I did not use zfcuser as i thought it was complicated for me to use in the small amount of time i had. But its the best way of doing it.
Check the wiki page for zfc user as well.
But you can do things really simple with zf2 authentication rather than writing your own module for it.

Complex RBAC Codeigniter Library (for fine grained users permissions and group based limits)

i am in the middle of a project that evolved in a direction that it require some sort of RBAC integrated with the authentication, but with advanced functionality (setting "caps" or "limits on users, based on their role/group). A SaaS site with paid and free plans like GitHub, Basecamp etc. can be a good example.
I already tested:
Ion Auth - http://github.com/benedmunds/CodeIgniter-Ion-Auth
Wolf Auth - http://github.com/Vheissu/Wolfauth---A-Codeigniter-Auth-Library
Perm Spark - http://getsparks.org/packages/perm/versions/HEAD/show
Codeigniter-RBAC - https://github.com/pdiddy/CodeIgniter-RBAC
and some other (one for all: Bonfire). Some of these have only authentication features, some lacks auth but provide RBAC. None of these makes use or mention about the possibility to have user limits.
I started developing a similar library myself (trying not to break Ion Auth function naming, because i am moving out from there), but, considering that i have only finished to plan the database schema and implement it in migrations, i think it is better to use something ready and tested (if it exists) instead of reinventing the wheel. Does anyone know a library to accomplish this particular tasks?
I am working with CI: 2.1.0 + HMVC, thinking to add DataMapper or RedBean for this particular purpose.
Cant think of anything else right now except cibonfire. cibonfire provides Auth and RBAC both. Have been using for more than 2 years now.

Codeigniter admin/auth system?

I'm starting a new project with codeigniter, and I'd like to start on a system that's already built so I can reduce the time of development.
Is there a good system that handles user authentication along with an admin interface to manage users that can be easily expanded to a web-app?
If this is too vague, I can expand
This thread here appears to have some answers
But the question was more about libraries. Either way, implementing some of the things on that thread would save you time.
You're looking for is a Content Management System (CMS).
There are a few ones out there that use Codeigniter as a framework for their CMS.
Edit: Even if you can't find a boilerplate CMS that you like, you can google about CMS's to design a simple one of your own as there's LOTS of tutorials and information about requirements and such when you know the term CMS.
I recommend Redux Auth for CodeIgniter. It comes with an example implementation, and can easily be used to manage user authentication for your CodeIgniter site. I just implemented Beta2 with the latest version of CodeIgniter, so while it's not actively updated, it still works with the latest build.
I'm using Bonfire as default admin interface.
I've just started looking into Bonfire:
Bonfire helps you build CodeIgniter-based PHP web applications even faster, by providing powerful tools and a beautiful interface you won't be ashamed to show your client.
Ready to customize Admin Interface.
User Management with Role-Based Access Control.
Fully Modular codebase.
Built around HMVC.
Database backup, migration, and maintenance.
Powerful, parent/child capable theme engine.
Simple Email Queue to keep your ISP happy.
UI-based module builder.
Looks good at first glance!

Single script to fully manage .net SQL membership provider data

3 Years ago I came across a really nice script. It was just an aspx and aspx.cs script, nothing more. It allowed me to see all the roles and users on site.
I could easily add/remove roles and add users to roles.
It used ajax for nice ui too.
Does anyone know where I can find this script?
I would like to use it again because setting it up was so simple. All I did was point it to the correct membershipProviderId and I was set.
thanks
Can you use the ASP.Net Web Site Administration Tool?

Resources