CodeIgniter Forums
CI4 default API authentication and logging with database - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: CI4 default API authentication and logging with database (/showthread.php?tid=76470)



CI4 default API authentication and logging with database - bhaumikkothari - 05-15-2020

In CI3 we were using external REST API libraries in which we had the functionalities to authenticate using X-API-KEY which was done using "keys" and "logs" table from database, the "logs" table was to maintain all the request logs and "keys" maintains authentication details.

In CI4 so far, we have tried using of Basic API and inbuilt REST API however, we cannot find the setup/configuration of authentication directly from database. Are we missing something here?

Thanks


RE: CI4 default API authentication and logging with database - jreklund - 05-15-2020

There are no such features built in, CI4 takes care of the routing. Everything else are up to you.