Coder Social home page Coder Social logo

Comments (12)

scheb avatar scheb commented on May 11, 2024 1

v5.2.1 released to fix issues related to lazy firewalls.

from 2fa.

PhilETaylor avatar PhilETaylor commented on May 11, 2024

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.

dirkkredler avatar dirkkredler commented on May 11, 2024

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.

PhilETaylor avatar PhilETaylor commented on May 11, 2024

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.

scheb avatar scheb commented on May 11, 2024

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.

PhilETaylor avatar PhilETaylor commented on May 11, 2024

Also of note: I run PHP 8 ;-)

from 2fa.

dirkkredler avatar dirkkredler commented on May 11, 2024

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.

scheb avatar scheb commented on May 11, 2024

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.

dirkkredler avatar dirkkredler commented on May 11, 2024

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.

PhilETaylor avatar PhilETaylor commented on May 11, 2024

lazy! #39 ?

from 2fa.

dirkkredler avatar dirkkredler commented on May 11, 2024

@PhilETaylor yeah, setting lazy: false fixes the issue 👍

from 2fa.

dirkkredler avatar dirkkredler commented on May 11, 2024

please see #39

from 2fa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.