Checklist
Summary
We are building dashboards for external users and they should be able to select the language they want to use the app in. The language info is persisted in the user info we get from OIDC provider. The provider has an API that we call to change the values. The problem is - currently there is no way to tell streamlit to update the values from the provider once they have changed them - other than forcing them to log in again.
What I would like to have is a command like st.refresh_user() that refreshes the user info from the OIDC provider and updates the st.user values accordingly. That way, I could call that function at the beginning of every session to make sure information is up to date, as well as right after a user has changed the value in our UI to get the cookie updated with them.
As a by-product, it might make sense to use the same command for also refreshing the OIDC tokens via the refresh token, as this would allow the users to stay logged in for for longer and more securely, and best practice for when to call token refresh lines up pretty well with when you would want to refresh the user info.
Why?
No response
How?
No response
Additional Context
No response
Checklist
Summary
We are building dashboards for external users and they should be able to select the language they want to use the app in. The language info is persisted in the user info we get from OIDC provider. The provider has an API that we call to change the values. The problem is - currently there is no way to tell streamlit to update the values from the provider once they have changed them - other than forcing them to log in again.
What I would like to have is a command like st.refresh_user() that refreshes the user info from the OIDC provider and updates the st.user values accordingly. That way, I could call that function at the beginning of every session to make sure information is up to date, as well as right after a user has changed the value in our UI to get the cookie updated with them.
As a by-product, it might make sense to use the same command for also refreshing the OIDC tokens via the refresh token, as this would allow the users to stay logged in for for longer and more securely, and best practice for when to call token refresh lines up pretty well with when you would want to refresh the user info.
Why?
No response
How?
No response
Additional Context
No response