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

Automatically invoke authentication #35

Closed
michaelroudnitski opened this issue Apr 24, 2024 · 1 comment · Fixed by #41
Closed

Automatically invoke authentication #35

michaelroudnitski opened this issue Apr 24, 2024 · 1 comment · Fixed by #41
Assignees

Comments

@michaelroudnitski
Copy link

michaelroudnitski commented Apr 24, 2024

Hi,

Thanks for creating this library, I was wondering if there is any way of invoking the authentication automatically? Instead of rendering an oauth2.authorize_button and waiting for the user to click the button, we could just call something like oauth2.invoke for example.

I'm trying to achieve a more seamless user experience. My users come to my streamlit app through my own IDP, so requiring them to click a login button is something I would like to avoid.

If it isn't already possible, would it make sense to add a configuration that if enabled, calls button.click() in main.js?

i.e.

function onRender(event) {
  ...
  if(data.args["auto_invoke"]) {
    button.click();
  }
  ...
}

Thanks and sorry if I'm missing something obvious, I'm pretty new to streamlit

@dnplus dnplus self-assigned this May 2, 2024
@varadinov
Copy link

I'm also looking for this feature. I want to embed streamlit in iframe. When the user open the page with the iframe I want to have a transparent authentication. Since both apps are using the same OAuth2 Provider the auth will be transparent.

@dnplus dnplus linked a pull request Jun 5, 2024 that will close this issue
@dnplus dnplus closed this as completed in #41 Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants