Expected Results
Personal Authorization
Organization Authorization
Admin Authorization
Non-Admin Authorization
Version Requirements
The DingTalk Unified Authorization Suite SDK requires DingTalk version 6.3.35 or later. For earlier versions, prompt users to upgrade the client. Use the following method to check the DingTalk version.1. Install the Authorization Suite SDK
-
Run the following command to download and install the SDK (dingtalk-design-libs must be version 0.1.0 or later).
-
After the download completes, import the SDK directly into your code.
2. Integrate App Authorization
Follow these steps to use the DingTalk Unified Authorization Suite to guide users through authorizing the relevant information.-
Import the DingTalk Unified Authorization Suite SDK.
-
When user authorization is required, call openAuth directly. The request example is as follows:
Request Parameters
3. Response Information
The Response Example Is as Follows:
-
Authorization completed
-
Authorization declined
-
An authorization request was sent to the admin, awaiting authorization (occurs only in organization authorization scenarios)
-
Authorization error