You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TinyAuth acts as a wrapper around CakePHP's official [Authentication](https://github.com/cakephp/authentication) and [Authorization](https://github.com/cakephp/authorization) plugins.
120
-
You need to install them first, depending on which part you want to use:
119
+
**IMPORTANT:** TinyAuth is a wrapper plugin that extends CakePHP's official plugins. You must understand them first:
120
+
121
+
#### 📦 Official CakePHP Plugins
122
+
123
+
| Plugin | Purpose | Documentation |
124
+
|--------|---------|---------------|
125
+
|**[cakephp/authentication](https://github.com/cakephp/authentication)**| Handles user authentication (login, sessions, etc.) |[📖 Official Docs](https://book.cakephp.org/authentication/3/en/index.html)|
126
+
|**[cakephp/authorization](https://github.com/cakephp/authorization)**| Handles user authorization (permissions, access control) |[📖 Official Docs](https://book.cakephp.org/authorization/2/en/index.html)|
121
127
122
128
```bash
123
-
#Required for authentication features
129
+
#Install for authentication features (login, sessions)
124
130
composer require cakephp/authentication
125
131
126
-
#Required for authorization features
132
+
#Install for authorization features (roles, ACL)
127
133
composer require cakephp/authorization
128
134
```
129
135
130
-
Then install TinyAuth:
136
+
**Note:** You only need to install the plugin(s) for the features you plan to use.
137
+
The AuthUser component and helper can work standalone without requiring the official plugins.
138
+
139
+
#### 📦 Install TinyAuth
140
+
141
+
After installing the required official plugin(s), install TinyAuth:
131
142
132
143
```bash
133
144
composer require dereuromark/cakephp-tinyauth
@@ -139,8 +150,6 @@ Finally, load the plugin:
139
150
bin/cake plugin load TinyAuth
140
151
```
141
152
142
-
**Note:** The AuthUser component and helper can work standalone without requiring the official plugins. They work with any authentication solution that sets an identity in the request.
0 commit comments