-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
Description
Description
When using commands that require authentication like f.e. stackit mariadb plans -y the -y flag does not skip the interactive mode if the session is expired.
Steps to reproduce
- Wait till session is expired
- Run
stackit mariadb plans -y
Actual behavior
Get printed Your session has expired, press Enter to login again... and CLI is waiting for user input.
Expected behavior
Unfortunately im unaware if and how to delete the session manually, so I have to wait for the expiration. But I'd expect something like this followed by the result of the executed stackit command:
Your browser has been opened to visit:
https://accounts.stackit.cloud/oauth/v2/authorize?client_id=...
Definitely I expect the CLI to open the browser without user input and return and not waiting for user input.
Environment
- OS: macOS
- Version of STACKIT CLI: 0.47.0