streamlit-google-auth icon indicating copy to clipboard operation
streamlit-google-auth copied to clipboard

update on allowing user to add credentials from config

Open kwchun0520 opened this issue 1 year ago • 2 comments

Adding function to the class, allowing user to load credentials from dictionary usage:

config = dict()

authenticator = Authenticate( cookie_name='my_cookie_name', cookie_key='this_is_secret', redirect_uri = 'http://localhost:8501', )

authenticator.load_credentials(config)

authenticator.login()

kwchun0520 avatar Jul 04 '24 03:07 kwchun0520

Hello, what are the benefits of using this instead ?

It would cause issue with compatibilty because the class arguments changed.

MrBounty avatar Jul 11 '24 15:07 MrBounty

Hi, my original thought is it is easier to incorporate with google secret manager. But Yes, you are right about the compatibility issue.

kwchun0520 avatar Jul 22 '24 08:07 kwchun0520