Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1663901: Allow terminal fallback for external browser authentication when browser launch fails #1893

Open
ehclark opened this issue Sep 13, 2024 · 0 comments
Assignees
Labels
feature status-triage Issue is under initial triage

Comments

@ehclark
Copy link

ehclark commented Sep 13, 2024

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?

@github-actions github-actions bot changed the title Allow terminal fallback for external browser authentication when browser launch fails SNOW-1663901: Allow terminal fallback for external browser authentication when browser launch fails Sep 13, 2024
@sfc-gh-wfateem sfc-gh-wfateem self-assigned this Sep 13, 2024
@sfc-gh-wfateem sfc-gh-wfateem added the status-triage Issue is under initial triage label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature status-triage Issue is under initial triage
Projects
None yet
Development

No branches or pull requests

2 participants