1. Create a domain in the Drive and Photo Service (PDS) console
Log on to the PDS console and create a domain. The following figure shows how to create a domain.
In this example, the domain ID is set to bj001
.
2. Create an OAuth application in the Resource Access Management (RAM) console
(1) Create an OAuth application
Select WebApp as Application Type.
Set the Callback URL parameter to
https://{domainId}.api.aliyunpds.com/v2/oauth/callback
. Replace {domainId} with your domain ID.
If the domain was created before March 2, 2023, set the Callback URL parameter to https://{domainId}.auth.aliyunpds.com/v2/oauth/callback
. Replace {domainId} with your domain ID.
(2) Configure permissions for the application
(3) Create an application secret
The application secret appears only once. Remember to note down the application secret.
The information that you need to note down is the application ID and application secret, rather than the value of the AppSecretId parameter and application secret.
3. Configure the access method of the domain in the PDS console
Enter the application ID and application secret that you obtain in the RAM console to the corresponding fields. The following figure shows how to configure the settings.
4. Enable the official BasicUI application for the domain
The following figure shows how to enable BasicUI.
If you enable BasicUI for the first time, you must log on as the super administrator and synchronize the data.
5. Example
(1) Open a domain
In this example, the domain of the official BasicUI application is opened. The URL of BasicUI is http://bj001.apps.aliyunpds.com
.
(2) Log on as a RAM user
(3) You are redirected to the logon page for a RAM user
Enter the username and the corresponding password.
The username and password are specified when you create the RAM user in the RAM console at https://ram.console.aliyun.com.
(4) You are redirected to BasicUI after a successful logon