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
These instructions assume that you have already [installed the CodeIgniter 4 app starter](https://codeigniter.com/user_guide/installation/installing_composer.html) as the basis for your new project, set up your `.env` file, and created a database that you can access via the Spark CLI script.
@@ -140,8 +142,19 @@ use to protect your routes, `session`, `tokens`, and `chained`. The first two co
140
142
to see if the user is logged in through either of authenticators, allowing a single API endpoint to
141
143
work for both an SPA using session auth, and a mobile app using access tokens. The fourth, `auth-rates`,
142
144
provides a good basis for rate limiting of auth-related routes.
145
+
These can be used in any of the [normal filter config settings](https://codeigniter4.github.io/CodeIgniter4/incoming/filters.html#globals), or [within the routes file](https://codeigniter.com/user_guide/incoming/routing.html#applying-filters).
143
146
144
-
These filters are already loaded for you by the registrar class located at `src/Config/Registrar.php`.
147
+
### Protect All Pages
148
+
149
+
If you want to limit all routes (e.g. `localhost:8080/admin`, `localhost:8080/panel` and ...), you need to add the following code in the `app\Config\Filters.php` file.
0 commit comments