Skip to content

Commit

Permalink
Add 'Remember This Device'
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenyeargin committed Nov 3, 2021
1 parent a2b1e14 commit e66e512
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"scheb/2fa-bundle": "^5.11",
"scheb/2fa-qr-code": "^5.11",
"scheb/2fa-totp": "^5.11",
"scheb/2fa-trusted-device": "^5.13",
"sensio/framework-extra-bundle": "^5.3",
"stof/doctrine-extensions-bundle": "^1.3",
"symfony/apache-pack": "^1.0",
Expand Down
186 changes: 185 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions config/packages/scheb_2fa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,12 @@ scheb_two_factor:
totp:
enabled: true
template: security/login_two_factor.html.twig
trusted_device:
enabled: true # If the trusted device feature should be enabled
lifetime: 5184000 # Lifetime of the trusted device token
extend_lifetime: false # Automatically extend lifetime of the trusted cookie on re-login
cookie_name: trusted_device # Name of the trusted device cookie
cookie_secure: false # Set the 'Secure' (HTTPS Only) flag on the trusted device cookie
cookie_same_site: "lax" # The same-site option of the cookie, can be "lax" or "strict"
cookie_domain: ~ # Domain to use when setting the cookie, fallback to the request domain if not set
cookie_path: "/" # Path to use when setting the cookie
9 changes: 9 additions & 0 deletions symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@
"laminas/laminas-code": {
"version": "3.5.1"
},
"lcobucci/clock": {
"version": "2.0.0"
},
"lcobucci/jwt": {
"version": "4.1.5"
},
"league/csv": {
"version": "9.2.0"
},
Expand Down Expand Up @@ -345,6 +351,9 @@
"scheb/2fa-totp": {
"version": "v5.11.0"
},
"scheb/2fa-trusted-device": {
"version": "v5.13.0"
},
"sebastian/cli-parser": {
"version": "1.0.1"
},
Expand Down

0 comments on commit e66e512

Please sign in to comment.