All Products
Search
Document Center

Drive and Photo Service:Login With DingTalk Account

Last Updated:May 09, 2024

1. Log on to the DingTalk Open Platform page.

Go to the DingTalk Open Platform page. The address is https://open.dingtalk.com/.

If you have not registered a DingTalk account, click Enterprise Register in the upper right corner to register a DingTalk account.

If you have a DingTalk account, log on to DingTalk Open Platform.

2. Create an application that can log on with DingTalk account

In the top navigation bar, choose Application Development > Development for Enterprise.

In the upper-right corner, click Create Application.

  • Set the Instance Type to H5 Mini Application and specify other required parameters. Click Confirm. On the page that appears, click DingTalk Logon and Share in the left-side navigation pane.

  • The format of the callback URL is https://{domainId}.api.aliyunpds.com/v2/oauth/callback. Replace {domainId} with your domain ID. For example, if the ID of the domain is bj001, the callback URL is https://bj001.api.aliyunpds.com/v2/oauth/callback.

  • If you want to configure a callback URL for Photo and Drive Service (PDS) Enterprise Edition, the format of the callback URL is https://{domainId}.api.aliyunfile.com/v2/oauth/callback. Replace {domainId} with your domain ID.

Important

Note: For a domain that is created before March 2, 2023, the format of a callback URL is https://{domainId}.auth.aliyunpds.com/v2/oauth/callback. If you want to configure a callback URL for PDS Enterprise Edition, the format of the callback URL is https://{domainId}.auth.aliyunfile.com/v2/oauth/callback.

Note

You can find the domain ID in the PDS console. The following figure shows the path to the domain ID.

dd1

If you configure a domain for PDS Enterprise Edition, you can find the domain ID in the PDS console. The following figure shows the path to the domain ID.

image

  • Grant the read permissions to the members of the enterprise. In the left-side navigation pane, click Manage Permissions. On the page that appears, find Read permissions on the members and click Apply Permissions in the Actions column.

  • On the page that appears, copy the value of the AppKey and AppSecret parameters.

3. Configure the access method of the domain

Log on to the PDS console. In the left-side navigation pane, click Domains. On the Domains page, configure the user system. The following figure shows the path to the configuration page.

8

Click OK.

If your domain is for the PDS Enterprise Edition, you must go on to the BasicUI page, log on as an administrator and configure the logon method.

7

After you perform the preceding steps, you can log on to the domain with DingTalk account.