---
title: 请求格式说明
description: "client_id是集成方在安装DevKit时应该进行配置的参数，redirect_uri是根据用户安装时选择的工具安装IP地址和端口确定的。在安装时进行配置，保存在DevKit配置文件中，如需进行修改，则需要执行工具安装目录下的tools目录中的sso_register.sh文件重新进行配置。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengdevkithistory/devkit_24_rc3/usermanual/KunpengDevKit_0107.html
sourcePath: /source/zh/kunpengdevkithistory/devkit_24_rc3/usermanual/KunpengDevKit_0107.html
indexId: e56884119d17b48caf4b46810d37d131f525a143a195ff3624e5ee86b910118680
---
# 请求格式说明

client_id是集成方在安装DevKit时应该进行配置的参数，redirect_uri是根据用户安装时选择的工具安装IP地址和端口确定的。在安装时进行配置，保存在DevKit配置文件中，如需进行修改，则需要执行工具安装目录下的tools目录中的sso_register.sh文件重新进行配置。


#### 请求方式

GET(HTTPS)


#### 资源URL

https://认证接口域名/sso/oauth2/authorize


#### 请求头

```
Content-Type: application/json
```


#### 请求参数

```
{
"client_id": "20221017000000001",
"redirect_uri": "https://用户域名:端口/#/",
"response_type": "code"
}
```


**表1 请求参数说明**

| 参数名 | 中文名称 | 参数类型 | 描述 |
| --- | --- | --- | --- |
| client\_id | 应用标识 | String | 客户端应用注册ID（在安装DevKit时，传入参数存入服务器配置文件）。 |
| redirect\_uri | 跳转地址 | String | 跳转地址为DevKit的登录地址，当携带code参数返回后会进行后续的身份验证过程。 |
| response\_type | 响应类型 | String | 只支持code模式。 |


#### 请求示例

```
curl -X GET
https://认证接口域名/sso/oauth2/authorize?redirect_uri=https://用户域名:端口/#/login &client_id=test&response_type=code
-H 'Content-Type: application/json'
```
