More security: Other passwords for JSON and Domoticz website
Posted: Tuesday 17 November 2015 11:22
Hello all,
I dont know if this is discussed before (cant find any with search) but i wonder the following:
If you want to switch things through a JSON request (like: http://<username:password@>domoticz-ip<:port>/json.htm?api-call) it works fine, and i understand that you need to use a password.
But would it be possible to use Form authentication as default for the website, and set a seperate password for JSON requests?
Because now i need to set authentication for all things (JSON and Website) to Basic auth. and use the username/password for both JSON request and login on the website. In my opinion that is not very safe.
And if the above can be created would it also be possible to use something like Google authenticator as Two factor authentication method to login at the website? So that it is safer to use from the Internet.
I dont know if this is discussed before (cant find any with search) but i wonder the following:
If you want to switch things through a JSON request (like: http://<username:password@>domoticz-ip<:port>/json.htm?api-call) it works fine, and i understand that you need to use a password.
But would it be possible to use Form authentication as default for the website, and set a seperate password for JSON requests?
Because now i need to set authentication for all things (JSON and Website) to Basic auth. and use the username/password for both JSON request and login on the website. In my opinion that is not very safe.
And if the above can be created would it also be possible to use something like Google authenticator as Two factor authentication method to login at the website? So that it is safer to use from the Internet.