瀏覽代碼

fix notion internal setting (#6836)

Jyong 8 月之前
父節點
當前提交
af76381b98
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      api/controllers/console/auth/data_source_oauth.py

+ 0 - 2
api/controllers/console/auth/data_source_oauth.py

@@ -17,8 +17,6 @@ from ..wraps import account_initialization_required
 
 
 def get_oauth_providers():
 def get_oauth_providers():
     with current_app.app_context():
     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,
         notion_oauth = NotionOAuth(client_id=dify_config.NOTION_CLIENT_ID,
                                    client_secret=dify_config.NOTION_CLIENT_SECRET,
                                    client_secret=dify_config.NOTION_CLIENT_SECRET,
                                    redirect_uri=dify_config.CONSOLE_API_URL + '/console/api/oauth/data-source/callback/notion')
                                    redirect_uri=dify_config.CONSOLE_API_URL + '/console/api/oauth/data-source/callback/notion')