Skip to content

Commit

Permalink
[doc] update doc of installation for Configure Casdoor
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartLinked committed May 1, 2024
1 parent d184def commit de21d3a
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion docs/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <Your Casdoor endpoint>
clientId = <Your Casdoor application's client ID>
clientSecret = <Your Casdoor application's client secret>
casdoorOrganization = <Your Casdoor organization name>
casdoorApplication = <Your Casdoor application name>
```
- Frontend (web/src/Conf.js)
```js
serverUrl: "<Your Casdoor endpoint>"
clientId: "<Your Casdoor application's client ID>"
appName: "<Your Casdoor application name>"
organizationName: "<Your Casdoor organization name>"
```

More details about Casdoor configuration can be found at: [casdoor-sso](/docs/casdoor-sso)

Expand Down

0 comments on commit de21d3a

Please sign in to comment.