Skip to content

Feature: Let OmniAuth support DingTalk

Baodong requested to merge icbd/gitlab:feature/omniauth_ding_talk into master

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

Step 2: Login by DingTalk

Scan QR code from DingTalk Mobile APP:

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

Merge request reports