Hello, I have been able to call the login cli command to generate an auto-login link for any user from the command line, but cannot find how to achieve this using the REST API.
The only method I was able to use from the REST API is the "admin --get-login-link" but this only works for the admin, not for other users.
# curl -k -i -u admin:*** -H "Content-Type: application/json" -H "Accept: application/json" https://<server-ip>:8443/api/v2/cli/admin/call -XPOST -d '{"params":["--get-login-link"]}'
{
"code": 0,
"stdout": "https:<server-ip>/login?secret=NMlQD3cw0NIvP1ZAYE3xGZs4Vktb1NKhGps5abU0o_T6e4Vh",
"stderr": ""
}
Anyone has insight on how to do this without using the XML API ?
The only method I was able to use from the REST API is the "admin --get-login-link" but this only works for the admin, not for other users.
# curl -k -i -u admin:*** -H "Content-Type: application/json" -H "Accept: application/json" https://<server-ip>:8443/api/v2/cli/admin/call -XPOST -d '{"params":["--get-login-link"]}'
{
"code": 0,
"stdout": "https:<server-ip>/login?secret=NMlQD3cw0NIvP1ZAYE3xGZs4Vktb1NKhGps5abU0o_T6e4Vh",
"stderr": ""
}
Anyone has insight on how to do this without using the XML API ?