Problem/Motivation

At the moment, the different plugins are somewhat confusing, since we have 3 working types of plugins (not sure if the Send plugins can even work..):

  • TfaValidation
  • TfaLogin
  • TfaSetup

The problem with the current setup is that the TfaSetup plugin doesn't really exist, as it is simply an extension of one of the other plugins. In addition, the ones provided by the module all extend the other plugin class, so in reality, all the plugins are already a TfaSetup plugin anyway.

We can easily unify all the modules, and distinguish their personalities on whether they implement a given interface or not. This way, it would be much simpler to create new plugin types by simply declaring a new interface.

Finally, the current plugin managers are very opinionated in which services can be injected into each plugin, and the core TFA module should not be making those decisions. Better allow plugin constructors by injecting the container.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

jcnventura created an issue. See original summary.

jcnventura’s picture

Version: 8.x-1.x-dev » 2.x-dev
jcnventura’s picture

Status: Active » Needs review
StatusFileSize
new224.48 KB

Testbots are go!

jcnventura’s picture

StatusFileSize
new223.22 KB

Re-rolling after all the latest changes.

Status: Needs review » Needs work

The last submitted patch, 4: tfa-unify-plugins-3314265-4.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

jcnventura’s picture

Status: Needs work » Needs review
StatusFileSize
new6.11 KB
new226.91 KB

And now fixing the re-roll bugs.

  • dd7f5fe committed on 2.x
    Issue #3314265 by jcnventura: Unify the plugins
    
jcnventura’s picture

Status: Needs review » Fixed

  • a8f3809 committed on 2.x
    Issue #3314265 by jcnventura: Add missing function doc comments
    

  • 766e64c committed on 2.x
    Issue #3314265 by jcnventura: Improve code similarity between TfaHotp...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.