Open alicecommits opened 1 year ago
@alicecommits I opened https://github.com/mkhorasani/Streamlit-Authenticator/issues/65 describing similar problem. I also posted there a workaround that I am currently using. You can check it.
Hi @Ota-Sandr-MamaAI , I had checked your issue indeed. I wasn't sure back then that my query was related,so I opened this issue. I can try and template my idea based on your workaround. Thanks :)
Hi, Instead of authenticating against the local config.yaml as showcased in the part 1 - streamlit authenticator tutorial, my use case would be passing on:
to the body of a POST/Login request, to access a 3rd-party service that, when authentication succeeds, spits back a token that expires after x hours.
For now, I locally modded the
login
method within theAuthenticate
class as follows (which I believe is not good practice...) as it reveals the password when unpacking...Note, as a less worse measure, I also tried to use the
hasher
instead of the bareself.password
, but couldn't figure it out...As I write I'm thinking I could try to "plug" an intermediary custom method within the class definition, that would somehow capture the prompted credentials at submit time. Has anyone encountered the same use case and/or difficulty? If so, how would you or how did you treat it?
Thanks in advance,