Skip to content

Commit e66e512

Browse files
Add 'Remember This Device'
1 parent a2b1e14 commit e66e512

4 files changed

Lines changed: 204 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"scheb/2fa-bundle": "^5.11",
2020
"scheb/2fa-qr-code": "^5.11",
2121
"scheb/2fa-totp": "^5.11",
22+
"scheb/2fa-trusted-device": "^5.13",
2223
"sensio/framework-extra-bundle": "^5.3",
2324
"stof/doctrine-extensions-bundle": "^1.3",
2425
"symfony/apache-pack": "^1.0",

composer.lock

Lines changed: 185 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/packages/scheb_2fa.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,12 @@ scheb_two_factor:
33
totp:
44
enabled: true
55
template: security/login_two_factor.html.twig
6+
trusted_device:
7+
enabled: true # If the trusted device feature should be enabled
8+
lifetime: 5184000 # Lifetime of the trusted device token
9+
extend_lifetime: false # Automatically extend lifetime of the trusted cookie on re-login
10+
cookie_name: trusted_device # Name of the trusted device cookie
11+
cookie_secure: false # Set the 'Secure' (HTTPS Only) flag on the trusted device cookie
12+
cookie_same_site: "lax" # The same-site option of the cookie, can be "lax" or "strict"
13+
cookie_domain: ~ # Domain to use when setting the cookie, fallback to the request domain if not set
14+
cookie_path: "/" # Path to use when setting the cookie

symfony.lock

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@
195195
"laminas/laminas-code": {
196196
"version": "3.5.1"
197197
},
198+
"lcobucci/clock": {
199+
"version": "2.0.0"
200+
},
201+
"lcobucci/jwt": {
202+
"version": "4.1.5"
203+
},
198204
"league/csv": {
199205
"version": "9.2.0"
200206
},
@@ -345,6 +351,9 @@
345351
"scheb/2fa-totp": {
346352
"version": "v5.11.0"
347353
},
354+
"scheb/2fa-trusted-device": {
355+
"version": "v5.13.0"
356+
},
348357
"sebastian/cli-parser": {
349358
"version": "1.0.1"
350359
},

0 commit comments

Comments
 (0)