Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit 342e887

Browse files
committed
Note on routes and firewalls
(cherry picked from commit d1f18f5d7b69eff1ea7277d8bf1a29260b07dffa)
1 parent 78bade7 commit 342e887

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Resources/doc/installation.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ return [
3232
### Step 3: Define routes
3333

3434
In `config/routes.yaml` add a route for the two-factor authentication form and another one for checking the
35-
authentication code.
36-
37-
The routes must be **located within the `path` of the firewall**, which should use two-factor authentication.
35+
authentication code. The routes must be **located within the `path` of the firewall**, the one which uses
36+
two-factor authentication.
3837

3938
```yaml
4039
# config/routes.yaml
@@ -49,6 +48,9 @@ The routes must be **located within the `path` of the firewall**, which should u
4948
path: /2fa_check
5049
```
5150
51+
If you have multiple firewalls with two-factor authentication, each one needs its own set of login and
52+
check routes that must be located within the associated firewall's `path`.
53+
5254
### Step 4: Configure the firewall
5355

5456
Enable two-factor authentication **per firewall** and configure `access_control` for the 2fa routes:

0 commit comments

Comments
 (0)