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;