Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Dec 1, 2023
1 parent de5e0fe commit 2cb3e2d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions docs/bt-panel.md
Expand Up @@ -94,11 +94,11 @@ Now that Casdoor has been configured, visit <http://your-ip:8000> to configure C

The default administrator login account is `admin/123`.

Click Organization, then click Add, click Edit for the added organization, and change the name to the organization name you want. Here I set it to casbin-forum, and then click Save.
Click Organization, then click Add, click Edit for the added organization, and change the name to the organization name you want. Here I set it to casnode, and then click Save.

Click Applications, then click Add, for the application you just added, click Edit, change the name to the application name you want, I changed it to app-casbin-forum. Click on the organization, select the organization you just added, my organization is casbin- forum. Click Redirect URLs, modify the link in the box to <http://your-ip:7000/callback.Finally>, remember the Client ID and Client Secret, and click Save.
Click Applications, then click Add, for the application you just added, click Edit, change the name to the application name you want, I changed it to app-casnode. Click on the organization, select the organization you just added, my organization is casnode. Click Redirect URLs, modify the link in the box to <http://your-ip:7000/callback.Finally>, remember the Client ID and Client Secret, and click Save.

Click Users, click Add, then click Edit, modify the added user, click Organization, select casbin-forum, and click is admin. Finally click Save, now your organization has an administrator account.
Click Users, click Add, then click Edit, modify the added user, click Organization, select casnode, and click is admin. Finally click Save, now your organization has an administrator account.
<br/>

### Configure Casnode
Expand Down
6 changes: 3 additions & 3 deletions docs/docker.md
Expand Up @@ -54,11 +54,11 @@ Now that Casdoor has been configured, visit <http://your-ip:8000> to configure C

The default administrator login account is ```admin/123```.

Click Organization, then click Add, click Edit for the added organization, and change the name to the organization name you want. Here I set it to casbin-forum, and then click Save.
Click Organization, then click Add, click Edit for the added organization, and change the name to the organization name you want. Here I set it to casnode, and then click Save.

Click Applications, then click Add, for the application you just added, click Edit, change the name to the application name you want, I changed it to app-casbin-forum.Click on the organization, select the organization you just added, my organization is casbin- forum. Click Redirect URLs, modify the link in the box to `http://your-ip:7000/callback`.Finally, remember the Client ID and Client Secret, and click Save.
Click Applications, then click Add, for the application you just added, click Edit, change the name to the application name you want, I changed it to app-casnode.Click on the organization, select the organization you just added, my organization is casnode. Click Redirect URLs, modify the link in the box to `http://your-ip:7000/callback`.Finally, remember the Client ID and Client Secret, and click Save.

Click Users, click Add, then click Edit, modify the added user, click Organization, select casbin-forum, and click is admin. Finally click Save, now your organization has an administrator account.
Click Users, click Add, then click Edit, modify the added user, click Organization, select casnode, and click is admin. Finally click Save, now your organization has an administrator account.
<br/>

### Configure casnode
Expand Down
8 changes: 4 additions & 4 deletions docs/installation.mdx
Expand Up @@ -27,7 +27,7 @@ Follow these steps to setup Casdoor for Casnode:
- Sign into the organization "built-in"
- Click **Organizations** in the top bar
- Click **add** button
- Remember the Organization name, here I use **casbin-forum** as my organization name:
- Remember the Organization name, here I use **casnode** as my organization name:
![organization](/img/installation/organization.png)

- Click **Applications** in the top bar
Expand Down Expand Up @@ -125,7 +125,7 @@ clientSecret = xxx
jwtSecret = CasdoorSecret

# Organization name in step 1
casdoorOrganization = "casbin-forum"
casdoorOrganization = "casnode"
```

### 3. Modify `web/src/Conf.js`
Expand All @@ -139,10 +139,10 @@ export const AuthConfig = {
clientId: "014ae4bd048734ca2dea",

// Application name you copied in step 1
appName: "app-casbin-forum",
appName: "app-casnode",

// Organization name you copied in step 1
organizationName: "casbin-forum",
organizationName: "casnode",
};
```

Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.js
Expand Up @@ -65,7 +65,7 @@ function LoginContent() {
<BrowserWindow>
<div className={styles.loginiframediv}>
<CasnodeCard width="870px" height="720px"
src="https://door.casdoor.com/login/oauth/authorize?client_id=014ae4bd048734ca2dea&response_type=code&redirect_uri=https://forum.casbin.com/callback&scope=read&state=app-casbin-forum"
src="https://door.casdoor.com/login/oauth/authorize?client_id=014ae4bd048734ca2dea&response_type=code&redirect_uri=https://forum.casbin.com/callback&scope=read&state=app-casnode"
/>
</div>
</BrowserWindow>
Expand Down

0 comments on commit 2cb3e2d

Please sign in to comment.