Thingsboard
Deploy Casdoor first (see Server installation). Then configure the application and Thingsboard as below.
步骤1:配置Casdoor应用
- 创建一个新的Casdoor应用或使用现有的应用。
- 添加重定向URL:
http://CASDOOR_HOSTNAME/login
- Note the Client ID and Client secret for the following steps.
步骤2:在Casdoor中添加用户
Create a user and assign a role to the application.
Go to Users → Add user to open the new-user page.
在添加用户名并选择组织“Thingsboard”后保存用户(其他详细信息可选)。
Set a password via "Manage your password".
为用户选择一个密码并确认它。
步骤3:准备和构建Thingsboard应用
首先,Thingsboard只支持Java 11 (OpenJDK)。
Download from:
要启动Thingsboard,请按照以下步骤操作(适用于Windows系统):
- 下 载并解压包。 下载包
- 根据您的偏好在\thingsboard\conf\thingsboard.yml中配置Thingsboard,包括Kafka、PostgreSQL等的配置。
- 在Thingsboard文件夹的命令行中运行
install.bat –loadDemo以安装并添加演示数据。
- 在命令行中运行
net start thingsboard以启动Thingsboard。 您应该看到以下输出:
步骤4:集成Casdoor
Now open http://localhost:8080/ and log in to the admin account:
Account: sysadmin@thingsboard.org / Password: sysadmin
成功登录后,点击页面左下角的OAuth2按钮。

按照以下方式填写空白:

Obtain these values from: OIDC discovery URL 
填写这些空白后,您已经成功将Casdoor与Thingsboard集成。 When you log in to http://localhost:8080/, you should see the following:
