I am reviewing some of the code I wrote in ColdBox. Then, it occurred to me whether it is possible to create a module for login validation. Since we have so many login validation methods (openAuth, captcha, two factor authentication, passwordless authentication…), I wonder if it is possible to create a separate application contain those methods. And then I can put it inside any system as a module for further use and no need to write login function anymore in the future.
This is the first time I am thinking about building a customised module.I have create several projects with some module provided by ColdBox but I have little experience in creating my own. For login validation, what possible difficulty I can think about so far may involve session management, relation with the database setting (user info is saved in db). I wonder if it is feasible. I appreciate if anyone could offer any suggestions.