Feature: Let OmniAuth support DingTalk
Issue: #341898 (closed)
What does this MR do and why?
Let OmniAuth support DingTalk. Users can login by DingTalk account.
Screenshots or screen recordings
Step 1: Connect DingTalk account
![](/-/project/278964/uploads/7ec2abe1547a729974fc02442e84a981/dingding-connect.png)
![](/-/project/278964/uploads/b81f794cf08c64f2f0d9f22adaf2943f/dingding-disconnect.png)
Step 2: Login by DingTalk
![](/-/project/278964/uploads/3f6893fcf2a0c7db6d9977ce4864ba08/dingding-login.png)
Scan QR code from DingTalk Mobile APP:
![](/-/project/278964/uploads/fae22bc3440321bef222a7345ed86585/dingding-qr-code.png)
How to set up and validate locally
omniauth:
enabled: true
auto_sign_in_with_provider:
# sync_profile_from_provider: []
# sync_profile_attributes: true
allow_single_sign_on: true
block_auto_created_users: false
auto_link_user: true
auto_link_ldap_user: true
auto_link_saml_user: true
external_providers: []
providers:
- { name: 'google_oauth2',
app_id: '',
app_secret: '',
args: { access_type: 'offline', approval_prompt: '' } }
- { name: 'gitlab',
app_id: '',
app_secret: '',
args: { scope: 'api' },
client_options: { "site": '' } }
- { name: 'dingtalk',
app_id: '',
app_secret: '' }
MR acceptance checklist
-
Login with connected DingTalk account -
Create new GitLab account and login with DingTalk account -
Connect DingTalk account with GitLab account -
Disconnect DingTalk account with GitLab account
Note
Although the official English name of dingding
is DingTalk
, most users are still used to using dingding
.
Most of the time they refer to the same product.
Edited by Baodong