catalyst / moodle-tool_mfa

A Multi-Factor Authentication Moodle plugin with flexible support for TOTP, Email, IP and more
https://moodle.org/plugins/tool_mfa
34 stars 38 forks source link

Create a new temporary secret manager api #232

Open brendanheywood opened 4 years ago

brendanheywood commented 4 years ago

This is designed so that any factors that need to store temporary secrets during the login flow can offload the bulk of this work to a central mfa api. Many factors will have almost identical requirements, ie a 6 digit random code which lasts for N minutes.

So proposing a few parts to the api

Create a secret

Validate a secret

Revoke a secret

Enter a secret

Strings

Factors which will probably use this:

brendanheywood commented 4 years ago

fyi @Dagefoerde