This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb-web-workbench.git
The following commit(s) were added to refs/heads/master by this push:
new d55a9c0 doc: doc for casdoor (#47)
d55a9c0 is described below
commit d55a9c04a88daf4549735a2416c76453a84c63e6
Author: jakiuncle <[email protected]>
AuthorDate: Sun Apr 2 16:51:16 2023 +0800
doc: doc for casdoor (#47)
---
README.md | 4 +-
README_zh.md | 4 +-
backend/doc/image/editApplication.png | Bin 0 -> 54525 bytes
backend/doc/image/editOrganization.png | Bin 0 -> 31720 bytes
backend/doc/image/frontSwitch.png | Bin 0 -> 6607 bytes
backend/doc/image/iotdb.gif | Bin 0 -> 474719 bytes
casdoor.md | 80 +++++++++++++++++++++++++++++++++
7 files changed, 84 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 1c52de9..149b86e 100644
--- a/README.md
+++ b/README.md
@@ -7,9 +7,7 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
http://www.apache.org/licenses/LICENSE-2.0
-
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -37,7 +35,9 @@ IoTDB-Workbench是IoTDB的可视化管理工具,可对IoTDB的数据进行增
[前端服务运行说明](frontend/README.md)
+## Casdoor运行
+[Casdoor单点登录运行说明](casdoor.md)
## Docker
diff --git a/README_zh.md b/README_zh.md
index 9f1cb6d..c5cf5f7 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -7,9 +7,7 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
http://www.apache.org/licenses/LICENSE-2.0
-
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -36,4 +34,6 @@ IotDB-Workbench是IotDB的可视化管理工具,可对IotDB的数据进行增
[前端服务运行说明](frontend/README.md)
+## Casdoor运行
+[Casdoor单点登录运行说明](casdoor.md)
diff --git a/backend/doc/image/editApplication.png
b/backend/doc/image/editApplication.png
new file mode 100644
index 0000000..8ee2fa3
Binary files /dev/null and b/backend/doc/image/editApplication.png differ
diff --git a/backend/doc/image/editOrganization.png
b/backend/doc/image/editOrganization.png
new file mode 100644
index 0000000..17ec30e
Binary files /dev/null and b/backend/doc/image/editOrganization.png differ
diff --git a/backend/doc/image/frontSwitch.png
b/backend/doc/image/frontSwitch.png
new file mode 100644
index 0000000..d94975e
Binary files /dev/null and b/backend/doc/image/frontSwitch.png differ
diff --git a/backend/doc/image/iotdb.gif b/backend/doc/image/iotdb.gif
new file mode 100644
index 0000000..9d5b907
Binary files /dev/null and b/backend/doc/image/iotdb.gif differ
diff --git a/casdoor.md b/casdoor.md
new file mode 100644
index 0000000..7b5e040
--- /dev/null
+++ b/casdoor.md
@@ -0,0 +1,80 @@
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+[](https://www.apache.org/licenses/LICENSE-2.0.html)
+
+
+# Casdoor
+
+Casdoor can simply connect to [Apache IoTDB](https://github.com/apache/iotdb).
+
+Because the code for connecting casdoor has been added in [Apache IoTDB Web
Workbench](https://github.com/apache/iotdb-web-workbench), we just need to
configure application.yml in back-end and open front switch.
+
+## Step1. Deploy Casdoor
+
+Firstly, the Casdoor should be deployed.
+
+You can refer to the Casdoor official documentation for the [Server
Installation](/docs/basic/server-installation).
+
+After a successful deployment, you need to ensure:
+
+- The Casdoor server is successfully running on **http://localhost:8000**.
+- Open your favorite browser and visit **http://localhost:7001**, you will see
the login page of Casdoor.
+- Input `admin` and `123` to test login functionality is working fine.
+
+Then you can quickly implement a Casdoor-based login page in your own app with
the following steps.
+
+## Step2. Configure Casdoor
+
+Configure casdoor can refer to
[casdoor](https://door.casdoor.com/login)(Configure casdoor's browser better
not use one browser as your develop browser).
+
+You also should configure an organization and an application. You also can
refer to [casdoor](https://door.casdoor.com/login).
+
+### 2.1 you should create an organization
+
+
+
+### 2.2 you should create an application
+
+
+
+## Step3. Open Apache IoTDB Web Workbench front-end switch
+
+Open this switch to make code and state send to back-end.
+
+This switch in the iotdb-web-workbench/fronted/.env
+
+
+
+## Step4. Configure back-end code
+
+You should configure casdoor's Configuration in the
iotdb-web-workbench/backend/src/main/resources/application.properties
+
+```ini
+casdoor.endpoint = http://localhost:8000
+casdoor.clientId = <client id in previous step>
+casdoor.clientSecret = <client Secret in previous step>
+casdoor.certificate=<client certificate in previous step>
+casdoor.organizationName=IoTDB
+casdoor.applicationName=app-IoTDB
+```
+
+## Result
+
+
\ No newline at end of file