DingTalk
DingTalk ✔️
DingTalk konfigurieren
Um DingTalk zu konfigurieren, besuchen Sie die DingTalk Entwicklerplattform und loggen Sie sich mit Ihrem DingTalk-Konto ein. Sobald Sie auf der Plattform sind, folgen Sie den Anweisungen, um Ihre Client Id und Client Secret zu erhalten. Die entsprechenden Begriffe in DingTalk sind wie folgt:
| Begriff | DingTalk-Name |
|---|---|
| Client ID | AppKey |
| Client secret | AppSecret |
In DingTalk können Sie den Appkey und AppSecret in den App-Informationen finden.

Stellen Sie sicher, dass Sie das Redirect Domain hinzufügen, das Ihre Casdoor-Domain sein sollte.

Weitere detaillierte Informationen finden Sie in den DingTalk Entwicklerdokumenten.
Required Permissions
You need to enable the following permissions in your DingTalk application:
- Contact.User.Read - Required for reading user contact information via the
/v1.0/contact/users/meAPI endpoint

Without the Contact.User.Read permission, authentication will fail when Casdoor tries to fetch user information. Make sure this permission is enabled in your DingTalk application settings under "Permissions Management".
User Identity Mapping
When users authenticate through DingTalk, Casdoor creates their username using the unionid field from DingTalk. This identifier uniquely represents each user across your DingTalk organization, ensuring reliable authentication even when employee details change. Since unionid remains constant throughout a user's lifecycle, it provides stable account mapping between DingTalk and Casdoor.
Casdoor konfigurieren
Hier ist die endgültige Konfiguration für DingTalk:
