Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized option "trusted_device" under "scheb_two_factor" #232

Closed
ehymel opened this issue Jun 6, 2024 · 2 comments
Closed

Unrecognized option "trusted_device" under "scheb_two_factor" #232

ehymel opened this issue Jun 6, 2024 · 2 comments
Labels

Comments

@ehymel
Copy link

ehymel commented Jun 6, 2024

Bundle version: 7.3.0
Symfony version: 7.1.1
PHP version: 8.3.7

Description
Great bundle, thanks for providing it. I have everything working (TOTP, text, email methods) perfectly, no issues whatsoever.

Tonight I wanted to add the "trusted_device" option. In my scheb_2fa.yaml file I added the appropriate lines:

scheb_two_factor:
    trusted_device:
        enabled: true # does not matter if this is set to false

When I reload my page I get the following error. I see the same error when I try to clear my cache.

Unrecognized option "trusted_device" under "scheb_two_factor". Available options are "email", "ip_whitelist", "ip_whitelist_provider", "model_manager_name", "persister", "security_tokens", "totp", "two_factor_condition", "two_factor_provider_decider", "two_factor_token_factory".

If I remove the "trusted_device" and associated "enabled" lines then all works again.

What could the problem be??

@ehymel ehymel added the Support label Jun 6, 2024
@bytehead
Copy link
Contributor

bytehead commented Jun 6, 2024

Do you have the package scheb/2fa-trusted-device required?

@ehymel
Copy link
Author

ehymel commented Jun 6, 2024

Well that's embarassing! Working now. Thank you.

@ehymel ehymel closed this as completed Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants