1. Create a domain in the Photo and Drive 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 is created before March 02, 2023, set the Callback URL 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 only appears once. Keep the application secret with caution.
The values that you keep are of the Application ID parameter 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 setting.
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, only the super administrator can enable the feature and synchronize 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) Forward to the logon page for a RAM user
Specify the username and the corresponding password.
You can find the username and the password in the RAM console. The endpoint of the RAM console is https://ram.console.aliyun.com.
(4) After a successful login, it will automatically redirect to BasicUI