Requests permissions by using OAuth 2.0.
Operation description
For more information, see "OAuth 2.0 For Web Server Applications" at OAuth 2.0 For Web Server Applications in User Guide.
Debugging
Authorization information
Request syntax
GET /v2/oauth/authorize HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
client_id | string | Yes | The application ID returned when the application was created. | 47eUHhrzgWBvlLWj |
redirect_uri | string | Yes | The callback URL specified when the application was created. | https://www.aliyunpds.com/sign/callback |
scope | array | No | The requested permissions. By default, all permissions are requested. | |
string | No | The requested permissions. You can request only all permissions on the application. Set the value to all or leave the parameter empty. | all | |
response_type | string | Yes | The format in which to return the response. Set the value to code. | code |
state | string | No | The user-defined parameter to return in the callback URL after the requested permissions are granted. | customdata |
login_type | string | Yes | The authentication method. Valid values:
| default |
hide_consent | boolean | No | Specifies whether to hide the consent page. | true |
Response parameters
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.