You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I enabled auth with Amazon Cognito, which I was able to do simply with streamlit-cognito-auth-v2==1.0.2. I'm able to get the flow to work and the components to render only after I've properly authenticated to my application. However, when I set use_cookies=True so that users don't need to enter the username/password every time, the calendar component stops rendering.
Here is what the calendar section of the page looks like with use_cookies=False (correctly renders).
Here is what it looks like with use_cookies=True (disappears).
I thought maybe session state was getting mangled for the calendar component, so I looped through and deleted all the keys associated with the auth process (after completing auth), as I don't need any of the tokens any longer. However, cleaning up session state still did not allow the calendar component to properly render.
The text was updated successfully, but these errors were encountered:
I ended up re-implementing the CognitoAuthorizer library in my application so that I could pinpoint what exactly was causing the calendar to not render. I found that the calendar would stop rendering specifically when cookies are set. I then swapped out the cookie manager from extra_streamlit_components to streamlit_cookies_controller and was able to render the calendar. So something with what the former library is doing is causing the calendar to not render. I'll post a cross issue with the former library.
I enabled auth with Amazon Cognito, which I was able to do simply with
streamlit-cognito-auth-v2==1.0.2
. I'm able to get the flow to work and the components to render only after I've properly authenticated to my application. However, when I setuse_cookies=True
so that users don't need to enter the username/password every time, the calendar component stops rendering.Below are relevant code snippets.
Here is what the calendar section of the page looks like with
use_cookies=False
(correctly renders).Here is what it looks like with
use_cookies=True
(disappears).I thought maybe session state was getting mangled for the calendar component, so I looped through and deleted all the keys associated with the auth process (after completing auth), as I don't need any of the tokens any longer. However, cleaning up session state still did not allow the calendar component to properly render.
The text was updated successfully, but these errors were encountered: