Im building a node-webkit app that posts a sort of log entry every few minutes to my Joomla site. I am quite skeptical of storing the username/password in my app.
I found two solutions, both allowing login via URL (simple GET stuff).
- Simple component that handles authentication via GET
- API for using external Apps and Sites to communicate/login/register to a Joomla site
Both allow my local node-webkit app to login like so:
http://www.mysite.com/index.php?option=com_test&username=foo&password=foo
But the 2nd solution says this:
If get success I mean if the info is correct then you will get this information:
[{"status":"Login Successfull","user_id":"982","username":"user","session_key":"1e3fdgdt4454580ae78e2ab90f35856c17f3"}]
- status
- user_id
- username
- session_key
You can store all the information in your app for next time.
The question
Would storing the session key allow me to login to the website in the future, even days after the first login? I've tried searching around but can't find an answer on this. Or should I store the login credentials with some sort of local encryption. Again - this is node-webkit so am not sure on how secure I can store stuff.