CLI can currently only be used in prompt mode because authorization can not be set in the other mode
Description
After logging in, the received token gets set as a global variable. When using the login wihtout prompt mode, these variables get deleted after the command has run so it is currently not possible to use the token in further requests. This means that any request requiring authorization can not be done when when using the controller in secure mode.
Expected Behavior
Authorization token is available in requests after successful login.
Actual Behavior
See description.
Possible Fix
- Option to add the token manually when doing requests with gosdnc non-prompt mode (requires updates for almost all cli commands)
- Make the token available in another way (no idea yet)
Steps to Reproduce
- Start controller in secure mode
- Log in via gosdnc wihtout prompt mode
- Try to do any other request via gosdnc the same way
Edited by Ghost User