streamlit-oauth icon indicating copy to clipboard operation
streamlit-oauth copied to clipboard

SSLCertVerificationError after button click

Open m3xw3ll opened this issue 1 year ago • 5 comments

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?

m3xw3ll avatar Mar 21 '24 14:03 m3xw3ll

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...

MattMacs avatar Mar 29 '24 15:03 MattMacs

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

dnplus avatar Apr 08 '24 08:04 dnplus

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.

m3xw3ll avatar Apr 08 '24 10:04 m3xw3ll

Same issue here, even after trying with the above.

MatthiasBeyens avatar Jun 05 '24 09:06 MatthiasBeyens

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

dnplus avatar Jun 05 '24 13:06 dnplus