Can I use the Box CLI from a PowerShell script without JWT(Server Authentication)?
Hello. I have a Box application set up and the CLI is installed and authenticates using OAuth2 with JWT (Server Authentication). I authorized my app in the admin console. I run a PowerShell script that gets Box user and folder information.
I need to use this in a production environment and am unable to store the config file on the server for security purposes. If I remove the config file my PowerShell script does not have access to Box data. If I create an app and use Standard OAuth2 (User Authentication) I am unable to Authorize my app and even if I could, I don't think my PowerShell script would have access to Box data without the CLI having the config file.
Is there a way to use the CLI from PowerShell without a JWT config file on the server? Is there another way to solve this problem?
Thanks.
Please sign in to leave a comment.
Comments
1 comment