Comments (12)
v5.2.1 released to fix issues related to lazy firewalls.
from 2fa.
It was all working in Symfony 5.2 until I upgraded to 5.2 of this bundle - now Im trying to get my head around what has broken ... currently at the error:
with two-factor-auth via google authenticator:
The two-factor provider "totp" has not been prepared.
from 2fa.
The Bundle Version 5.2.0 works for me with Symfony 5.1.9; in my case i think the breaking change is introduced with Symfony 5.2 or the combination of both: Symfony 5.2.0 with the Bundle 5.2.0? I do not see any error messages at all in the logs; it seems the 2fa-token is just not generated.
from 2fa.
Im using 5.2.0/5.2.0 and I was able to generate a qr - scan it - but now not able to login with generic "An authentication exception occurred."... im debugging now :(
from 2fa.
Well that's odd. When running my test application, In not having that issue. So we'd need to find out what's special about your application and causing the issue.
@dirkkredler
Which security system are you using? Classic security or the new authenticators system?
Would you please:
- Post your security.yaml config
- Downgrade The bundle to 5.1.4 and keep Symfony at 5.2.0 and see if you're still having issues. That way we can check if the behavioral change is caused by Symfony or the bundle.
from 2fa.
Also of note: I run PHP 8 ;-)
from 2fa.
Which security system are you using? Classic security or the new authenticators system?
I am using the guard-based authentication
- Post your security.yaml config
security.yaml and scheb_two_factor config
- Downgrade Thebundle to 5.1.4 and keep Symfony at 5.2.0 and see if you're still having issues. That way we can check if the behavioral change is caused by Symfony or the bundle.
Done, 2fa still broken in my setup.
thank you very much for your time and help, and the bundle of course 👍
from 2fa.
I notice there is no pattern
defined for your main
firewall. @PhilETaylor just told me in the other thread, that adding pattern: /
was fixing it for him. So I'd suggest you try that before we dig any deeper.
from 2fa.
Yeah, i don't think we need it here, but anyway, i added the pattern to the main firewall, cleared the cache and it stays the same. If i select the user in the database, i see that there is no token generated.
You can postpone this issue for now, i will look into this later this week and try to debug the issue to a deeper level, so i can provide you more information. At the moment i don't see any BC in Symfony 5.2.0 or changes that would affect my app.
from 2fa.
lazy! #39 ?
from 2fa.
@PhilETaylor yeah, setting lazy: false
fixes the issue 👍
from 2fa.
please see #39
from 2fa.
Related Issues (20)
- enable_authenticator_manager deprecated by symfony HOT 3
- Redirects back to form login HOT 2
- How to whitelist routes during 2FA? HOT 2
- Bundle not work in PHP 8.2 but work in 8.1 HOT 5
- Will 2fa work with sessions disabled? HOT 8
- Expiring email 2FA codes HOT 4
- 2fa_check always 401 Unauthorized (API PLatform + LexikJWTAuthenticationBundle) HOT 8
- 2FA form not shown upon successful login HOT 3
- preload.php - composer recipes HOT 2
- Cannot install scheb/2fa-qr-code on a project with scheb/2fa-bundle version 6.9 (latest) HOT 2
- scheb/2fa-google-authenticator: \OTPHP\TOTP::verify()'s $leeway argument is misused HOT 5
- Problem when switching to PROD HOT 3
- How to have Google authenticator required to be setup even after first login ? HOT 5
- 2fa_login and 2fa_login_check can't be replaced by our own route name HOT 2
- Custom prepare trigger to enable selection of 2FA method at login HOT 2
- Custom form HOT 2
- Support Symfony 7 HOT 6
- Validate code before actual Google Authentication / Different BruteForce protection compared to documentation HOT 1
- Bundle version 7 todo list (Symfony 7 support) HOT 1
- symfony 5.4 firewall with custom_authenticator HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 2fa.