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
Copy file name to clipboardExpand all lines: docs/install.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,7 @@ Require it with an explicit version constraint allowing its desired stability.
108
108
There are a few setup items to do before you can start using Shield in
109
109
your project.
110
110
111
-
1. Copy the **Auth.php**and **AuthGroups.php** from **vendor/codeigniter4/shield/src/Config/** into your project's config folder and update the namespace to `Config`. You will also need to have these classes extend the original classes. See the example below. These files contain all the settings, group, and permission information for your application and will need to be modified to meet the needs of your site.
111
+
1. Copy the **Auth.php**, **AuthGroups.php**, and **AuthToken.php** from **vendor/codeigniter4/shield/src/Config/** into your project's config folder and update the namespace to `Config`. You will also need to have these classes extend the original classes. See the example below. These files contain all the settings, group, and permission information for your application and will need to be modified to meet the needs of your site.
session and tokens | The `Session` and `AccessTokens` authenticators, respectively.
219
-
chained | The filter will check both authenticators in sequence to see if the user is logged in through either of authenticators, allowing a single API endpoint to work for both an SPA using session auth, and a mobile app using access tokens.
220
-
jwt | The `JWT` authenticator. See [JWT Authentication](./addons/jwt.md).
221
-
auth-rates | Provides a good basis for rate limiting of auth-related routes.
222
-
group | Checks if the user is in one of the groups passed in.
223
-
permission | Checks if the user has the passed permissions.
224
-
force-reset | Checks if the user requires a password reset.
| session and tokens | The `Session` and `AccessTokens` authenticators, respectively. |
220
+
| chained | The filter will check both authenticators in sequence to see if the user is logged in through either of authenticators, allowing a single API endpoint to work for both an SPA using session auth, and a mobile app using access tokens. |
221
+
| jwt | The `JWT` authenticator. See [JWT Authentication](./addons/jwt.md). |
222
+
| hmac | The `HMAC` authenticator. See [HMAC Authentication](./guides/api_hmac_keys.md). |
223
+
| auth-rates | Provides a good basis for rate limiting of auth-related routes. |
224
+
| group | Checks if the user is in one of the groups passed in. |
225
+
| permission | Checks if the user has the passed permissions. |
226
+
| force-reset | Checks if the user requires a password reset. |
225
227
226
228
These can be used in any of the [normal filter config settings](https://codeigniter.com/user_guide/incoming/filters.html#globals), or [within the routes file](https://codeigniter.com/user_guide/incoming/routing.html#applying-filters).
0 commit comments