Skip to content

Commit 9d0cc12

Browse files
authored
Merge pull request #2591 from MGatner/auth-rec
User Guide authentication recommendations
2 parents bfae89e + 890ad7d commit 9d0cc12

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Authentication
2+
#####################################
3+
4+
CodeIgniter intentionally does not provide an internal authentication or authorization class. There are a number
5+
of great third-party modules that provide these services, as well as resources in the community for writing
6+
your own. The following are recommended guidelines to encourage consistency among developers of
7+
modules, projects, and the framework itself.
8+
9+
Recommendations
10+
===============
11+
12+
* Modules that handle login and logout operations should trigger the ``login`` and ``logout`` Events when successful
13+
* Modules that define a "current user" should define the function ``user_id()`` to return the user's unique identifier, or ``null`` for "no current user"

user_guide_src/source/extending/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ CodeIgniter 4 has been designed to be easy to extend or build upon.
1111
common
1212
events
1313
basecontroller
14+
authentication
1415
contributing

0 commit comments

Comments
 (0)