We need to make calls to the JSON API from within a plugin. The intention is to modify the DNS of a user's domain using /json-api/editzonerecord.
The code we have been provided requires that the WHM root password is entered into a configuration page, within WHM, and then stored in plain text on the server. This is clearly a terrible idea and we have already had people refuse to install the plugin as a result.
My question is, can the JSON API be used without any direct authentication, instead relying on the fact that a user is logged in?
If not then would using a remote access hash key be the best way forward?
Thank you for any advice that you can provide.
The code we have been provided requires that the WHM root password is entered into a configuration page, within WHM, and then stored in plain text on the server. This is clearly a terrible idea and we have already had people refuse to install the plugin as a result.
My question is, can the JSON API be used without any direct authentication, instead relying on the fact that a user is logged in?
If not then would using a remote access hash key be the best way forward?
Thank you for any advice that you can provide.