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 · 1 comment
Assignees
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

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
@sfc-gh-dszmolka sfc-gh-dszmolka added status-triage_done Initial triage done, will be further handled by the driver team status-pr_pending_merge A PR is made and is under review and removed status-triage Issue is under initial triage labels Dec 12, 2024
@sfc-gh-dszmolka
Copy link
Contributor

the driver team is working on a fix; unfortunately for now i don't have any ETA but will update this thread once there's something to share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants