All Products
Search
Document Center

Drive and Photo Service:Login With RAM User

Last Updated:Feb 20, 2024

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.

p1

In this example, the domain ID is set to bj001.

p2

2. Create an OAuth application in the Resource Access Management (RAM) console.

(1) Create an OAuth application

Image

  • 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.

Important

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

2

(3) Create an application secret

  • The application secret only appears once. Keep the application secret with caution.

3

Note

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

Note

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.

x1

4. Enable the official BasicUI application for the domain

The following figure shows how to enable BasicUI.

b3

If you enable BasicUI for the first time, only the super administrator can enable the feature and synchronize data.

b4

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.

6

(2) Log on as a RAM user

7

(3) Forward to the logon page for a RAM user

8

  • 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.

9

(4) After a successful login, it will automatically redirect to BasicUI

10