printshopcreator/src/new/config/packages/scheb_2fa.yaml
2026-07-03 17:30:15 +02:00

35 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# See the configuration reference at https://symfony.com/bundles/SchebTwoFactorBundle/6.x/configuration.html
scheb_two_factor:
security_tokens:
- Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken
- Symfony\Component\Security\Http\Authenticator\Token\PostAuthenticationToken
# E-Mail-Code-Verfahren (Code geht an das separate 2FA-Feld des Benutzers).
# Absender + SMTP kommen über den eigenen Mailer aus den Systemeinstellungen.
email:
enabled: true
mailer: PSC\System\SettingsBundle\Mailer\InstanceAuthCodeMailer
digits: 6
# TOTP / Authenticator-App
totp:
enabled: true
server_name: PrintshopCreator
issuer: PrintshopCreator
parameters:
algorithm: sha1
digits: 6
period: 30
# "Dieses Gerät 30 Tage merken" nach erfolgreicher 2FA wird ein
# signiertes Cookie gesetzt, sodass am selben Gerät 30 Tage lang
# keine erneute 2FA-Abfrage nötig ist.
trusted_device:
enabled: true
lifetime: 2592000 # 30 Tage (in Sekunden)
extend_lifetime: false
cookie_name: psc_2fa_trusted
cookie_same_site: "lax"
# Eigener Signierschlüssel (>=256 Bit); APP_SECRET ist zu kurz (200 Bit).
key: '%env(TWO_FACTOR_TRUSTED_KEY)%'