versatile-data-kit icon indicating copy to clipboard operation
versatile-data-kit copied to clipboard

Executing a command which requires authentication should make vdk authenticate instead of print an exception

Open gageorgiev opened this issue 3 years ago • 0 comments

What is the feature request? What problem does it solve? Currently, if I run a VDK command which requires me to be authenticated, and I am not, the execution stops with an error message stating that I need to be authenticated. Then I need to manually authenticate and re-try the command. This is 3 manual steps to get successful execution. If token expires quickly (e.g 30 minutes) this can be pretty frequently

Suggested solution VDK should attempt to authenticate me automatically instead of printing an exception. Possibly automatically opening my browser so I can login (or if I am already logged in in SSO , then do nothing).

Existing workaround If a user using API Token authentication, they can login once vdk login -t api-token or set VDK_API_TOKEN and it would no longer require login as long as the API token reminds valid (which can be months).

gageorgiev avatar Oct 14 '21 11:10 gageorgiev