• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI4 User Authentication System

#11
(03-03-2017, 11:07 AM)ajturner Wrote: This will be treated primarily as a model since it requires MySQL database access. It will have basic templates for controllers and views that for users to start from, if needed.

Here is a current list of goals for initial release:
  • Create a website for communications and discussions
  • User login and registration
  • Password recovery (forgot password, username, etc)
  • Login attempt logs with IP address tracking
  • Lock out users for specfied amount of time after a number of failed attempts
  • Generate email messages that can be insert into the developers email method of choice

So ... an already working application, without the business logic in it. Smile

(03-04-2017, 06:40 PM)skunkbad Wrote: From you issues:

Quote:Need to determine what packages to include in final release.

   Password hasher
   Any Security packages
   Emailer

Should also determine if these packages should be included in the UserAuth namespace or within their own namespace in the CodeIgniter application.

The bolded line in that quote is the real problem ... Security isn't a thing you install.

(03-04-2017, 06:40 PM)skunkbad Wrote: ...

Password hasher? What's wrong with PHP's native password functions?

Nothing.

But, while the OP probably listed that for the wrong reasons, there's plenty of room for abstraction on top of PHP's ext/password.
So, here's a shameless plug: https://github.com/ITCover/PasswordProcessor (the README explains what I mean)

(03-04-2017, 08:30 PM)PaulD Wrote: Take 'forgotten password' for instance. There are so many ways to do just that alone. Secret questions, emailing reset links, emailing codes to reset, sending temp passwords, second one time use passwords, sending random passwords, human moderation of password resets etc etc.

I'd argree on your point in principle, but have to disagree on this example ...

Secret questions are a no-go. Period.
Emailing password reset codes or links is very much the same thing.
Emailing temporary passwords is essentially the same thing as emailing password reset codes.
Temporary passwords must always be only for one-time use (hence the last point above)
Any password (or code/token) you generate must be random regardless of what you do.
Human moderation can be useful only in closed, intranet-style systems, but even then - don't forget that humans are always the weakest link.

So ... You drop 2 of these (first and last), see that another 3 are the same basic thing (one-time token/password) and then note that the only remaining thing is a requirement for the former basic thing.
Not much choice really.
Reply


Messages In This Thread
CI4 User Authentication System - by ajturner - 03-03-2017, 11:07 AM
RE: CI4 User Authentication System - by kilishan - 03-03-2017, 04:03 PM
RE: CI4 User Authentication System - by atishamte - 03-03-2017, 10:31 PM
RE: CI4 User Authentication System - by ajturner - 03-04-2017, 07:07 AM
RE: CI4 User Authentication System - by ajturner - 03-04-2017, 09:29 AM
RE: CI4 User Authentication System - by kierownik - 03-04-2017, 12:31 PM
RE: CI4 User Authentication System - by visualsol - 03-04-2017, 05:02 PM
RE: CI4 User Authentication System - by skunkbad - 03-04-2017, 06:40 PM
RE: CI4 User Authentication System - by PaulD - 03-04-2017, 08:30 PM
RE: CI4 User Authentication System - by Narf - 03-06-2017, 02:51 AM
RE: CI4 User Authentication System - by qury - 03-06-2017, 05:48 AM
RE: CI4 User Authentication System - by ajturner - 03-06-2017, 07:14 AM
RE: CI4 User Authentication System - by Narf - 03-06-2017, 07:41 AM
RE: CI4 User Authentication System - by ajturner - 03-06-2017, 08:15 AM
RE: CI4 User Authentication System - by qury - 03-06-2017, 10:25 AM
RE: CI4 User Authentication System - by cartalot - 03-06-2017, 11:13 AM
RE: CI4 User Authentication System - by qury - 03-06-2017, 11:50 AM
RE: CI4 User Authentication System - by skunkbad - 03-06-2017, 04:48 PM
RE: CI4 User Authentication System - by visualsol - 03-06-2017, 10:53 PM
RE: CI4 User Authentication System - by ajturner - 03-09-2017, 08:32 AM
RE: CI4 User Authentication System - by kilishan - 03-09-2017, 01:36 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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