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
{{ message }}
This repository was archived by the owner on Dec 2, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: Resources/doc/trusted_device.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,23 @@ class User implements TrustedDeviceInterface
50
50
51
51
If not implemented, the bundle is defaulting to version `0`.
52
52
53
+
## Flagging a device as "trusted"
54
+
55
+
To flag a device as "trusted", in the last step of the 2fa process, you have to pass a parameter `_trusted` with a
56
+
`true`-like value. The parameter name can be changed in the firewall configuration:
57
+
58
+
```yaml
59
+
security:
60
+
firewalls:
61
+
yourFirewallName:
62
+
# ...
63
+
two_factor:
64
+
trusted_parameter_name: _trusted # Name of the parameter for the trusted device option
65
+
```
66
+
67
+
Please have a look at the [default authentication form template](https://github.com/scheb/two-factor-bundle/blob/4.x/Resources/views/Authentication/form.html.twig#L38-L40)
68
+
how it's implemented.
69
+
53
70
## Custom trusted device manager
54
71
55
72
If you don't like the way this is implemented, you can also have your own trusted device manager. Create a service
0 commit comments