From cf9e628a3e3cef21d6bfae185e604e07fc8179ec Mon Sep 17 00:00:00 2001 From: Gucheng Wang Date: Mon, 13 Dec 2021 16:42:46 +0800 Subject: [PATCH] Improve authConfig. --- web/src/App.js | 3 +-- web/src/auth/Auth.js | 6 +----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/web/src/App.js b/web/src/App.js index 1648639e..5c43a014 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -70,8 +70,7 @@ class App extends Component { Setting.initServerUrl(); Auth.initAuthWithConfig({ serverUrl: Setting.ServerUrl, - appName: "app-built-in", - organizationName: "built-in", + appName: "app-built-in", // the application name of Casdoor itself, do not change it }); } diff --git a/web/src/auth/Auth.js b/web/src/auth/Auth.js index 4b11a985..d1f6cb41 100644 --- a/web/src/auth/Auth.js +++ b/web/src/auth/Auth.js @@ -12,11 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -export let authConfig = { - serverUrl: "http://example.com", // your Casdoor URL, like the official one: https://door.casbin.com - appName: "app-built-in", // your Casdoor application name, like: "app-built-in" - organizationName: "built-in", // your Casdoor organization name, like: "built-in" -} +export let authConfig = {}; export function initAuthWithConfig(config) { authConfig = config;