Closed TheoDeberles closed 4 years ago
Please follow the troubleshooting guide: https://github.com/scheb/two-factor-bundle/blob/4.x/Resources/doc/troubleshooting.md#two-factor-authentication-form-is-not-shown-after-login
Hello thank you for response. In version 4.4.7 of symfony, is it this bundle link https://github.com/scheb/2fa ? And if it's this bundle when we try to add Google authenticator we have the scheb_2fa.yml for the conf but in this part https://github.com/scheb/2fa/blob/5.x/doc/providers/google.md#custom-authentication-form-template the conf file is different
scheb/2fa
is the newer version of this bundle (version 5). scheb/two-factor-bundle
(version 4) also supports Symfony 4.4, but it is no longer actively developed. If possible, I'd recommend to use the newer version from scheb/2fa
.
but in this part https://github.com/scheb/2fa/blob/5.x/doc/providers/google.md#custom-authentication-form-template the conf file is different
I don't see any difference. It's exactly the same as in version 4.
Ok so actually we have installed the lastest version previously recommended but at this time we have too many redirects to 2fa after login
This is probably the issue:
access_control:
[.....]
- { path: ^/, roles: [ROLE_TENANT, ROLE_PROVIDER] }
- { path: ^/2fa, role: IS_AUTHENTICATED_2FA_IN_PROGRESS }
The ^/
path matches everything, so when Symfony is evaluating the rules one-by-one, it can never reach the rule for ^/2fa
. Move that 2fa rule futher up.
The 2fa page gives me a 404 error and in the troubleshooting doc I do not know in which case I find.
Then there's no routing configured for that path. Check that you have configured a route for the 2fa form, which is connected to the controller from the bundle.
We have resolved the probleme when we have configured the routes again in the correct order with the default controller. Thank you for your help.
Hello
Bundle version: 4.18 Symfony version: 4.4.7
Description Hello, I would like to integrate a 2fa in my project. After following the doc and adding this conf in my project, I don't go to page 2fa after logging in my user. Currently I do not see what is preventing the passage. Sometime I also had a symfony mistake : 'Google is not prepared
I give you the conf of my security.yml file