Welcome Guest, Not a member yet? Register   Sign In
Auth
#22

(This post was last modified: 11-16-2014, 10:17 PM by bclinton.)

(11-07-2014, 03:05 AM)Narf Wrote: "Basic login" using what?

E-mails as usernames?
Some user-defined pattern for custom usernames?
Via AD/LDAP? Via OAuth?
Passwords hashing via bcrypt, scrypt, pbkdf2?
What if there should be an IP address based restriction?
What if you need to tie it to some other application specific logic?

These are all questions related ONLY to a possible login() method, I'm not even going into how it would have to couple it to cookies, sessions or some other kind of token exchange.

It's only basic after you make those decision and CI as a framework should provide generic solutions while leaving the choice to you. With authentication, this is just not possible and as long as I'm involved with the project, such library will not be included.

I agree with this.

I designed something that works for me and recently cleaned it up and released it in the add-ins section (Appunto-Auth), but there are so many ways you can take something like this that it would be very difficult to foresee the needs of every individual application without creating something that would become overly complex and bloated.

I want to add more features to mine going forward, including making it work with CI3, but sometimes it can be difficult to decide where to start.  Multiple database compatibility? Integration with FlexiAuth?  User Profile pages?  System for allowing addition of custom user data? Login tracking and reporting? IP banning?  etc etc... 

I haven't even gotten to a user password reset feature yet and there are like a dozen different ways to implement a common thing like this.

I think it's a good idea to keep this out of the CodeIgniter framework so developers have a wider array of options and can choose something that works best for their application.


Messages In This Thread
Auth - by zurtri - 10-29-2014, 03:57 PM
RE: Auth - by skunkbad - 10-29-2014, 06:24 PM
RE: Auth - by kilishan - 10-29-2014, 07:57 PM
RE: Auth - by zurtri - 10-29-2014, 10:35 PM
RE: Auth - by InsiteFX - 10-30-2014, 06:34 AM
RE: Auth - by Hobbes - 10-30-2014, 06:51 AM
RE: Auth - by includebeer - 10-30-2014, 07:39 AM
RE: Auth - by tristian - 11-07-2014, 06:35 AM
RE: Auth - by Shawn P - 11-12-2014, 04:38 PM
RE: Auth - by Avenirer - 10-30-2014, 08:21 AM
RE: Auth - by no1youknowz - 10-30-2014, 09:46 AM
RE: Auth - by BrandF - 10-31-2014, 08:20 AM
RE: Auth - by GrigoreMihai - 11-06-2014, 07:08 AM
RE: Auth - by GeorgeD - 11-06-2014, 08:23 AM
RE: Auth - by dmyers - 11-06-2014, 11:55 AM
RE: Auth - by GrigoreMihai - 11-06-2014, 11:46 PM
RE: Auth - by Narf - 11-07-2014, 03:05 AM
RE: Auth - by GrigoreMihai - 11-07-2014, 03:26 AM
RE: Auth - by bclinton - 11-16-2014, 10:15 PM
RE: Auth - by benoni - 11-07-2014, 04:23 AM
RE: Auth - by Tim Brownlaw - 11-12-2014, 05:09 PM
RE: Auth - by Chroma - 11-14-2014, 08:48 AM
RE: Auth - by sv3tli0 - 11-17-2014, 12:09 AM
RE: Auth - by bertansh - 11-17-2014, 05:29 AM
RE: Auth - by Rufnex - 11-17-2014, 07:11 AM
RE: Auth - by tomlagard - 11-24-2014, 08:50 PM
RE: Auth - by sv3tli0 - 11-25-2014, 02:04 AM
RE: Auth - by Tux - 11-25-2014, 05:15 AM
RE: Auth - by Narf - 11-25-2014, 06:23 AM
RE: Auth - by bclinton - 11-25-2014, 09:50 AM
RE: Auth - by twpmarketing - 11-25-2014, 02:54 PM
RE: Auth - by bclinton - 11-25-2014, 05:39 PM
RE: Auth - by alroker - 11-25-2014, 04:16 PM
RE: Auth - by sv3tli0 - 11-26-2014, 12:08 AM
RE: Auth - by alroker - 11-26-2014, 01:02 AM
RE: Auth - by includebeer - 11-26-2014, 08:48 PM
RE: Auth - by jlp - 11-26-2014, 10:52 PM
RE: Auth - by kilishan - 11-26-2014, 11:51 PM
RE: Auth - by jlp - 11-27-2014, 12:07 AM
RE: Auth - by alroker - 11-27-2014, 01:12 AM
RE: Auth - by Narf - 11-27-2014, 07:38 AM
RE: Auth - by hvmitev - 11-27-2014, 08:02 AM
RE: Auth - by bclinton - 11-27-2014, 10:35 AM
RE: Auth - by bclinton - 11-27-2014, 10:45 AM
RE: Auth - by alroker - 11-27-2014, 10:28 AM
RE: Auth - by no1youknowz - 11-27-2014, 10:55 AM
RE: Auth - by includebeer - 11-27-2014, 12:38 PM
RE: Auth - by sv3tli0 - 11-27-2014, 01:09 PM
RE: Auth - by alroker - 11-27-2014, 05:36 PM
RE: Auth - by bclinton - 11-27-2014, 09:11 PM
RE: Auth - by GeorgeD - 11-28-2014, 03:59 AM
RE: Auth - by sv3tli0 - 11-28-2014, 05:56 AM
RE: Auth - by includebeer - 11-28-2014, 06:30 AM
RE: Auth - by sv3tli0 - 11-28-2014, 07:02 AM
RE: Auth - by bclinton - 11-28-2014, 07:57 AM
RE: Auth - by sv3tli0 - 11-28-2014, 08:14 AM
RE: Auth - by includebeer - 11-28-2014, 09:10 AM
RE: Auth - by ivantcholakov - 11-28-2014, 07:34 AM
RE: Auth - by no1youknowz - 11-28-2014, 08:32 AM
RE: Auth - by DonOzone - 11-28-2014, 01:05 PM
RE: Auth - by zurtri - 11-28-2014, 05:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB