跳到主内容

Apache DolphinScheduler

Casdoor是Apache DolphinScheduler支持的登录方式之一。

步骤1:部署Casdoor

Deploy Casdoor. See Server installation. Ensure the server is running (e.g. http://localhost:8000) and you can open the login page (e.g. http://localhost:7001) and sign in with admin / 123.

步骤2:配置Casdoor应用

  1. 创建一个新的Casdoor应用或使用现有的一个。
  2. Add your redirect URL (see the next section for how to obtain it). Casdoor应用设置
  3. 添加所需的提供商并填写其他必要的设置。

Note Client ID and Client secret from the application page for the next step.

打开您喜欢的浏览器并访问http://CASDOOR_HOSTNAME/.well-known/openid-configuration以查看Casdoor的OIDC配置。

步骤3:配置DolphinScheduler

dolphinscheduler-api/src/main/resources/application.yaml

security:
authentication:
# Authentication types (supported types: PASSWORD, LDAP, CASDOOR_SSO)
type: CASDOOR_SSO
casdoor:
# The URL of your Casdoor server
endpoint:
client-id:
client-secret:
# Use `|-` for multi-line certificate
certificate:
# The organization name you added in Casdoor
organization-name:
# The application name you added in Casdoor
application-name:
# The DolphinScheduler login URL
redirect-url: http://localhost:5173/login

现在,DolphinScheduler将自动将您重定向到Casdoor进行身份验证。演示