CodeIgniter Forums
API KEY verification - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: API KEY verification (/showthread.php?tid=82073)



API KEY verification - dwebb64 - 06-08-2022

For CodeIgniter 3 we wrote some api's using a rest.php file (using Phil Sturgeon REST Api) to get the X-Api-key from the header.  Are there any similar functionality in CodeIgniter 4 that can be added to check an Api Key passed in the header?  Much of the search results I have found discuss login and password authentication but not much specifically on how to check an api key.  If I could be pointed in a direction that would explain how to include the functionality in the CodeIgniter 4 framework it would be greatly appreciated.  Also, this is my first post in the CodeIgniter forum so hints on where / how to ask for help would be appreciated as well.

Thank You


RE: API KEY verification - iRedds - 06-08-2022

Filters
Retrieving Headers