SNOW-1663901: Allow terminal fallback for external browser authentication when browser launch fails #1893
Labels
feature
status-pr_pending_merge
A PR is made and is under review
status-triage_done
Initial triage done, will be further handled by the driver team
What is the current behavior?
When a browser cannot be launched, JDBC connection fails with error
Exception in thread "main" net.snowflake.client.jdbc.SnowflakeSQLLoggedException: JDBC driver encountered communication error. Message: Cannot run program "xdg-open": error=2, No such file or directory.
What is the desired behavior?
Behavior is the same as the Python connector. The user is prompted to paste the authentication URL into a browser, authenticate and then paste the redirect URL back into the terminal.
How would this improve
snowflake-jdbc
?It would allow Java-based programs to be run from headless environments, for example Docker containers.
What is your Snowflake account identifier, if any?
The text was updated successfully, but these errors were encountered: