- Issue created by @ptmkenny
- π΅πΉPortugal jcnventura
If the compatibility problem is arising here, there is not much that can be done. This login controller is not used for the normal functioning of the module, but as a lock to prevent use of the user.login.http REST API. This because we haven't found a way to request TFA over the REST API, so we gave up and simply locked that path completely, so as to not open a security hole by allowing TFA to be bypassed completely on that method. If you want to skip this horrible, horrible kludge simply use branch 2.x of the module, in which this was never added (and is of course totally open to TFA bypass...).
If you want a site with this TFA module that is not trivially bypassed via REST API, it simply can't be decoupled. Maybe other TFA modules have better solutions to this, and we would LOVE to have help in moving the 2.x branch to an event-based solution. That solution would not rely on overwriting the login form (and controller in this case), but would actually hook into every request and insert a few additional steps on some cases (login via /user/login form, login via REST API, login via smoke signals and password reset), to request the TFA token from the user in those cases.
- πΊπΈUnited States cmlara
This because we haven't found a way to request TFA over the REST API⦠in which this was never added (and is of course totally open to TFA bypass...)
2.x should have secure login support (including REST) since π Installing contrib modules can lead to TFA accidently being bypassed Fixed was committed. See https://project.pages.drupalcode.org/tfa/technical/set-user-protection/ for the technical details of how it implements protection for 2.x going forward.
We just have not implemented password reset yet (and it is now failing secure due to the overall event processing code). Even the password reset code is mostly there at this point (it works, just a new scenario was raised that allowing time for feedback to see if we can modify the process to be even more flexible).
I need to update[#3374221].
- π―π΅Japan ptmkenny
Thank you both for the quick response! That documentation is fantastic, great work!