Skip to content
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

SSLCertVerificationError after button click #30

Open
m3xw3ll opened this issue Mar 21, 2024 · 5 comments
Open

SSLCertVerificationError after button click #30

m3xw3ll opened this issue Mar 21, 2024 · 5 comments
Assignees

Comments

@m3xw3ll
Copy link

m3xw3ll commented Mar 21, 2024

Hello,

We have a local Keycloak instance running and I would like users of the Streamlit app to authenticate themselves via it.
When the user clicks on the login button and enters his credentials the error message appears:

SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

How do I get rid of this error message?

@MattMacs
Copy link

Pushing this issue up... having the same problem running a local Authentik instance...
even bringing Streamlit to SSL with self-signed certificate doesn't help...

@dnplus
Copy link
Owner

dnplus commented Apr 8, 2024

I think you should try ignore ssl verify globally

for example

https://stackoverflow.com/questions/15445981/how-do-i-disable-the-security-certificate-check-in-python-requests

@m3xw3ll
Copy link
Author

m3xw3ll commented Apr 8, 2024

I think you should try ignore ssl verify globally

for example

https://stackoverflow.com/questions/15445981/how-do-i-disable-the-security-certificate-check-in-python-requests

Unfortunately, this does not solve the problem. Even if I add the function as described, which sets verify to False, the exact same error message appears.

@dnplus dnplus self-assigned this May 2, 2024
@MatthiasBeyens
Copy link

Same issue here, even after trying with the above.

@dnplus
Copy link
Owner

dnplus commented Jun 5, 2024

This component was built using httpx-oauth

refer to https://www.python-httpx.org/advanced/ssl/

It seems that httpx-oauth does not provide any interface to replace the httpx client.

I am thinking about switching to authlib, but I'm not sure if it's a good idea. #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants