文档
测试

获取access token及租户信息

GET
http://${ip}:${port}/api/oauth/client-detail-token

接口描述

在oauth服务根据企业编码获取access token以及租户信息

接口名

client-detail-token

请求参数

参数名
类型
描述
必填
companyCode
string
企业编码
必填

响应参数

application/json
参数名
类型
描述
必填
clientCredentialToTokenResponse
object
必填
code
int
响应码
必填
message
string
响应消息
必填
data
object
必填
companyCode
int
企业编码
必填
clientId
string
租户id
必填
clientSecret
string
租户secret
必填
accessToken
string
租户登录凭证
必填
totalResults
int
必填
errorNote
string
必填

说明 / 示例

```json { "clientCredentialToTokenResponse": { "code": 0, "message": "成功", "data": { "companyCode": "4-13", "clientId": "10000010", "clientSecret": "$2a$10$4AkZkpLpnJdKtfCz3iNCueCIjATFNM21/FZOtyfZ2DssVeb2sC5JO", "accessToken": "f3875952-12fd-4a49-948c-6e7e0f0879e7" }, "totalResults": null, "errorNote": null } }