alladdin / node-lox-ws-api

Node JS WebSocket Loxone™ API
MIT License
32 stars 23 forks source link

Improvement: Allow to set the "application info" for token based authentification #12

Open UncleSamSwiss opened 6 years ago

UncleSamSwiss commented 6 years ago

It would be nice, if one could provide the info for token based authentification (which is currently hardcoded to "nodeloxwsapi"). In my case, the user installs ioBroker and on it the adapter ioBroker.loxone, but he doesn't know what "nodeloxwsapi" means when looking at the currently issued tokens.

Also, should we consider using the permission type "4" instead of "2"? Like that we could actually store the token for reuse in the application without having to keep the password (which would be a great advantage from a security point of view). BTW, is there a way to generate a token directly by the user (on the website or in Loxone Config)?