From af76381b983886a4711abec1cb674eb724e2ce2b Mon Sep 17 00:00:00 2001 From: Jyong <76649700+JohnJyong@users.noreply.github.com> Date: Wed, 31 Jul 2024 17:17:46 +0800 Subject: [PATCH] fix notion internal setting (#6836) --- api/controllers/console/auth/data_source_oauth.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/controllers/console/auth/data_source_oauth.py b/api/controllers/console/auth/data_source_oauth.py index 626834724..45cfa9d7e 100644 --- a/api/controllers/console/auth/data_source_oauth.py +++ b/api/controllers/console/auth/data_source_oauth.py @@ -17,8 +17,6 @@ from ..wraps import account_initialization_required def get_oauth_providers(): with current_app.app_context(): - if not dify_config.NOTION_CLIENT_ID or not dify_config.NOTION_CLIENT_SECRET: - return {} notion_oauth = NotionOAuth(client_id=dify_config.NOTION_CLIENT_ID, client_secret=dify_config.NOTION_CLIENT_SECRET, redirect_uri=dify_config.CONSOLE_API_URL + '/console/api/oauth/data-source/callback/notion')