Skip to content

common auth API for CI

Derek Jones edited this page Jul 4, 2012 · 8 revisions

Goals

This page is a kind of RFC for building a common API for authentication libraries. Since there is no such core lib, at least we could decide a [b]common interface[/b].

[url=http://codeigniter.com/forums/viewthread/53036/]here is the forum thread[/url]

Feel free to add/edit/delete, but if you do so, please fill in the small [b]notes[/b] field below the edit area.

structure

Quoting benlm, we could start with this structure:

[b]Level 1[/b] would be a library which would have functions like login, logout, register etc. that handle the DB manipulation, sessions, etc. but no views.

[b]Level 2[/b] would have the basic form validation and processing code with defined form parameters and a dead-simple sample view for each (No flash messages, no containers/templates etc.)

[b]Level 3[/b] would have the kitchen sink (views,flash messages, emails sent on password change, etc. with a million configurable parameters)

components

permissions

user group or level

permissions levels

acl

...

'inside code checking'

...

user interface

registration

config for manual or automatic activation

custom user profiles

...

remember me

remember login ID only or password also

password reset

...

password change

...

retrieve user info

security

captcha

...

track logged in users

...

enable black list / kick out

...

Clone this wiki locally