REST_Controller - Generating the API-KEYs? |
Hi All,
I've installed the REST library by chriskacerguis and turned on API-KEY authentication. I'm building an API to be consumed by web and mobile apps (my own). Can anyone describe the actual steps needed to generate and save those API-KEYs into the 'keys' database table? Should I have a separate API controller (not REST_Controller) that deals with signup and creates/inserts that? Or should I use an OAuth2 library to authenticate the clients and return/save the keys? Just need some clarification on exactly how the flow works. Thanks.
https://github.com/chriskacerguis/codeig...r#api-keys
The short documentation doesn't say anything about how to generate them, so it looks like you just put a random string in the table yourself, with relevant details like generation time, and off you go.
Don't do a random string manually.
Sadly, Chris has taken the Phil Sturgeon School of Documentation masters course. Check out the below file on how to generate keys. https://github.com/chriskacerguis/codeig...pi/Key.php (07-02-2018, 10:37 AM)enlivenapp Wrote: Don't do a random string manually. Thanks enlivenapp!! |
Welcome Guest, Not a member yet? Register Sign In |