Apache DolphinScheduler
Casdoor est l'une des méthodes de connexion prises en charge pour Apache DolphinScheduler.
Étape 1 : Déployer 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.
Étape 2 : Configurer l'application Casdoor
- Créez une nouvelle application Casdoor ou utilisez-en une existante.
- Add your redirect URL (see the next section for how to obtain it).

- Ajoutez le fournisseur souhaité et remplissez les autres paramètres nécessaires.
Note Client ID and Client secret from the application page for the next step.
Ouvrez votre navigateur préféré et visitez http://CASDOOR_HOSTNAME/.well-known/openid-configuration pour voir la configuration OIDC de Casdoor.
Étape 3 : Configurer 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
Maintenant, DolphinScheduler vous redirigera automatiquement vers Casdoor pour l'authentification.