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-636926: Users can't SSO through a containerized web app (e.g. Streamlit) #1212

Open
aduverger opened this issue Jul 28, 2022 · 2 comments
Labels
feature status-triage_done Initial triage done, will be further handled by the driver team triaged

Comments

@aduverger
Copy link

Hello guys !

What is the current behavior?

We have a web application developed with Streamlit, that let people access their Snowflake tables easily.
To do that, users have to log in using AzureADSSO.
Everything works well when the streamlit app is running locally :

  • User click on a SSO button
  • A new tab opens to log in using their Azure Account
  • They can close the tab, and now they are loged in with the app

Yet, when using the app on a virtual machine and/or within a Docker container, the snowflake python connector can't open a new tab, so it logs to the console the URL needed to get a token. Then the user needs to manually write this token in the console:

image

So locally, even if it's a docker container running, we can still manage to enter the token URL in the console.
But when the app is hosted on a virtual machine / azure container instance, users can't access the console.

What is the desired behavior?

Is there any workaround or possible improvement so that users could enter the token URL differently that through the console ?

How would this improve snowflake-connector-python?

This would allow to use SSO Snowflake connector with web applications.

Thank you very much for your help :)

@github-actions github-actions bot changed the title Users can't SSO through a containerized web app (e.g. Streamlit) SNOW-636926: Users can't SSO through a containerized web app (e.g. Streamlit) Jul 28, 2022
@feluelle
Copy link

feluelle commented Nov 9, 2022

Hey @aduverger,
#932 could be of interest to you.

@kamilKujawski
Copy link

Hey @aduverger,
were you able to figure this out with steamlit? I tried to use those vars from #932 however I was not able to make it work.

@sfc-gh-dszmolka sfc-gh-dszmolka added the status-triage_done Initial triage done, will be further handled by the driver team label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature status-triage_done Initial triage done, will be further handled by the driver team triaged
Projects
None yet
Development

No branches or pull requests

5 participants