CodeIgniter Forums
Mock Authentication - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Addins (https://forum.codeigniter.com/forumdisplay.php?fid=34)
+--- Thread: Mock Authentication (/showthread.php?tid=80563)



Mock Authentication - MGatner - 11-16-2021

Hi everyone! I have a quick one for you tonight: 

Tatter\Imposter
Mock Authentication for CodeIgniter 4
https://github.com/tattersoftware/codeigniter4-imposter

Since the inception of codeigniter4/authentication-implementation it has been much easier to create authentication-agnostic modules. The drawback to this is that you still need a way to test the code with some authentication. In the past I would plug in an entire library just to meet the requirement - no more! Imposter solves this by providing a bare minimum, easy-to-use authentication service and helper to facilitate testing. Right now it does the basics: login, logout, check for auth status. I hope to add in some more testing assertions down the road.

Check out the repo and let me know what you think!
https://github.com/tattersoftware/codeigniter4-imposter


RE: Mock Authentication - seunex - 11-16-2021

Am very glad this guy is part of CI team. He is giving everything for Codeigniter. Thumbs up bro.


RE: Mock Authentication - InsiteFX - 11-17-2021

Thank you @MGatner , An access to the community.