simplesamlphp / simplesamlphp-module-webauthn

A module implementing FIDO2 / WebAuthn as a second authentication factor
GNU Lesser General Public License v2.1
15 stars 8 forks source link

Create controllers for all the scripts in www/ #14

Closed jaimeperez closed 4 years ago

jaimeperez commented 5 years ago

The new routing mechanism allows us to implement MVC, which is great for unit testing. We should move the functionality implemented in the scripts in www and move it to controller classes, then have routes for those controllers.

Since we still need to support the old user interface, we still need to have those scripts in www around, but those could just call the corresponding method from a controller class.