Your comments

Duo does offer a free version of their 2FA solution, which is probably sufficient to reproduce.

https://duo.com/pricing/duo-free