Installing Apache Superset at work for internal use, I was attempting to link our Superset OAuth to an internal OAuth provider, this provider uses self signed SSL certificates which caused issues with the Flask OAuthlib. In my Superset logs I would see the following error –probiotic supplement
1 |
[SSL: CERTIFICATE_VERIFY_FAILED] |
As this is an internal system it’s possible to monkey patch the SSL handler to avoid doing a verification on our certificates by adding the following to the superset_config.py –
1 2 3 |
import ssl ssl._create_default_https_context = ssl._create_unverified_context |
This means that we can reuse the same superset_config.py for our Superset Docker image and bypass the exception, OAuth here we come!
Questions? Comments?