Streamlit-Authenticator icon indicating copy to clipboard operation
Streamlit-Authenticator copied to clipboard

Concurrency Issue / Auto Scaling Issue with yaml file re-write using experimental_login

Open atangsyd opened this issue 11 months ago • 0 comments

Describe the feature

Issue occurs due to requirement to constantly overwrite and update the config file after executing the experimental_login function. When there are a lot of users concurrently logging into the app, the constant need to read and write the config file causes issues. This also becomes an issue when the app is deployed to a container with auto scaling enabled and the config file does not get persisted across containers. This seems to be a problem with the experimental_login function when using Microsoft Oauth2 for authentication as part of step 14.

Use case

When there are over 2000 users of a streamlit app using Microsoft OAuth2 as method of authentication and when auto scaling is required for multiple machines to persist the cookies from authentication. It ensures a seamless user experience.

Alternatives considered

Applying a lock file to the yaml will slow down the streamlit app user experience

Related Issues

No response

atangsyd avatar May 26 '25 14:05 atangsyd