From de21d3a4cccb30254bf671f626fd8681894b7b6d Mon Sep 17 00:00:00 2001 From: HeartLinked Date: Wed, 1 May 2024 18:43:36 +0800 Subject: [PATCH] [doc] update doc of installation for Configure Casdoor --- docs/installation.mdx | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/installation.mdx b/docs/installation.mdx index f7b6d00..f58dd1c 100644 --- a/docs/installation.mdx +++ b/docs/installation.mdx @@ -64,7 +64,26 @@ CasWAF uses XORM to connect to DB, so all DBs supported by XORM can also be used ### Configure Casdoor -After creating an organization and an application for CasWAF in a Casdoor, you need to update `clientID`, `clientSecret`, `casdoorOrganization` and `casdoorApplication` in app.conf. +After creating an organization and an application for CasWAF in a Casdoor, you need to update `clientID`, `clientSecret`, `casdoorOrganization` and `casdoorApplication` in app.conf and Conf.js. + +- Backend (conf/app.conf) + +```ini +casdoorEndpoint = +clientId = +clientSecret = +casdoorOrganization = +casdoorApplication = +``` + +- Frontend (web/src/Conf.js) + +```js +serverUrl: "" +clientId: "" +appName: "" +organizationName: "" +``` More details about Casdoor configuration can be found at: [casdoor-sso](/docs/casdoor-sso)