From 281b1da913069353e12dfd07515b5dc5321b99ef Mon Sep 17 00:00:00 2001 From: tawoe Date: Mon, 25 Apr 2022 18:33:58 +0200 Subject: [PATCH] make ssl verification configurable --- apimanager/apimanager/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apimanager/apimanager/settings.py b/apimanager/apimanager/settings.py index f582b1f8..6f6063df 100644 --- a/apimanager/apimanager/settings.py +++ b/apimanager/apimanager/settings.py @@ -273,6 +273,8 @@ LOGO_URL = 'https://static.openbankproject.com/images/OBP/favicon.png' OVERRIDE_CSS_URL = None +VERIFY = True if API_HOST.startswith("https") else False + # Local settings can override anything in here try: from apimanager.local_settings import * # noqa @@ -284,8 +286,6 @@ # For some reason, swagger is not available at the latest API version API_URL_SWAGGER = API_HOST + '/obp/v1.4.0/resource-docs/v' + API_VERSION + '/swagger' # noqa -VERIFY = True if API_HOST.startswith("https") else False - if not OAUTH_CONSUMER_KEY: raise ImproperlyConfigured('Missing settings for OAUTH_CONSUMER_KEY') if not OAUTH_CONSUMER_SECRET: