请求格式说明
client_id是集成方在安装DevKit时应该进行配置的参数,redirect_uri是根据用户安装时选择的工具安装IP地址和端口确定的。在安装时进行配置,保存在DevKit配置文件中,如需进行修改,则需要执行工具安装目录下的tools目录中的sso_register.sh文件重新进行配置。
请求方式
GET(HTTPS)
资源URL
https://认证接口域名/sso/oauth2/authorize
请求头
1 | Content-Type: application/json |
请求参数
1 2 3 4 5 | { "client_id": "20221017000000001", "redirect_uri": "https://用户域名:端口/#/", "response_type": "code" } |
参数名 |
中文名称 |
参数类型 |
描述 |
---|---|---|---|
client_id |
应用标识 |
String |
客户端应用注册ID(在安装DevKit时,传入参数存入服务器配置文件)。 |
redirect_uri |
跳转地址 |
String |
跳转地址为DevKit的登录地址,当携带code参数返回后会进行后续的身份验证过程。 |
response_type |
响应类型 |
String |
只支持code模式。 |
请求示例
1 2 3 | curl -X GET https://认证接口域名/sso/oauth2/authorize?redirect_uri=https://用户域名:端口/#/login &client_id=test&response_type=code -H 'Content-Type: application/json' |
父主题: 获取authorization_code