bleumink / streamlit-keycloak

User authentication and single sign-on in your Streamlit app using Keycloak
MIT License
59 stars 11 forks source link

Support SSO to Streamlit app from iframe of different subdomain #28

Open spicoflorin opened 10 months ago

spicoflorin commented 10 months ago

Hello!

I have the following configuration:

  1. A main UI application, based on NodeJS, protected by Keycloak. I call it MainUI. It has the subdomain main.example.com.

  2. A Streamlit application that is accessible from MainUI. I call it MyStreamLitApp. It has the subdoamain myapp.example.com

  3. MyStreamLitApp. is accessible only from the MaiUI via iframe tag.

4.keycloak has the subdomain keycloak.example.com

Goal:

I would like to have SingleSignOn from the MainUI to MyStreamLitApp. Thus, after the user log on into the MainUI, the user should also have gain access to MyStreamLitApp.

I'm wondering if I can accomplish my goal by using this package.

If yes, how can I achieved it?

I look forward to your answers. Regards, Florin