-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom authentication method #65
Comments
Thank you for this @Ota-Sandr-MamaAI . Managed to get LDAP auth working for streamlit autheticator via this code by doing an LDAP bind in the _my_check_pw function. |
Hi @voidel , could you please provide an explicit code snippet illustrating what you meant by "LDAP bind in the _my_check_pw function"? As tagged by Ota, I'm working on a similar issue - I'm trying to use this authenticator to send the user's credentials over to the server of a 3rd party service, response of which would enable the user to access the app, and start a session where they could work with the 3rd party service functionalities via my Streamlit app. Thanks, |
I'm interested in this one... we have another app written in gradio, and it has a login method - it takes an optional function that returns True/False when passed the user/password. Giving it |
I would like to have to have an option to be able to write my own way how to check the password. Something like custom replacement for
Authenticate._check_pw
method. My use case is that I have an external server where the credentials need to be checked. I understand that I won't be able to use streamlit authenticator methods for registering users or recovering passwords in my use case but it does not matter for me.Right now, I am using the following workaround:
Although this solution works, I do not like it because I need to manually replace private method
_check_pw
and create two customdict
classes to bypass checking of username. Plus, this solution has disadvantage that the username that is available in_my_check_pw
method is already lowercased (and I would like to send to server it with original casing).It would be nice if streamlit authenticator has some more native way how to achieve this.
The text was updated successfully, but these errors were encountered: