All Products
Search
Document Center

Drive and Photo Service:Logon with RAM OAuth

Last Updated:Dec 17, 2024

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.

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

2

(3) Create an application secret

  • The application secret appears only once. Remember to note down the application secret.

3

Note

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

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

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, you must log on as the super administrator and synchronize the 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) You are redirected to the logon page for a RAM user

8

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

9

(4) You are redirected to BasicUI after a successful logon

10