snowflakedb/snowflake-cli

SNOW-938294: authenticator = "externalbrowser" triggers a login after every snowcli command

Closed this issue · 2 comments

SnowCLI version

1.2.0

Python version

3.8.15

Platform

MacOS

What happened

Here is my config.toml

[connections]

[options]
default_connection = "pm"

[connections.pm]
account = "pm"
user = "asaini"
authenticator = "externalbrowser"
warehouse = "hlevel1"
database = "local_demo"
schema = "local_schema"

For every command that I run, snowcli triggers a fresh login. This makes for an unpleasant experience.

Ideally, we should make the user login only once. Upon login all commands should run on the shell directly

cc: @sfc-gh-anugupta

Console output

No response

How to reproduce

No response

When you run the subsequent commands? Thanks to #247 this should not be the case as long as the session is active.

Could not reproduce. As said #247 should fix it, however the authentication is not infinite, you have authenticate from time to time.