获取AccessToken接口
OAuth 2.0 获取AccessToken接口
接口地址:/sign/authz/oauth/v20/token
请求方式:GET POST
请求数据类型:application/x-www-form-urlencoded
响应数据类型:*/*
接口描述:
传递参数token等
请求参数:
请求参数:
| 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
|---|---|---|---|---|---|
| parameters | parameters | query | true | object |
响应状态:
| 状态码 | 说明 | schema |
|---|---|---|
| 200 | OK | OAuth2AccessToken |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
响应参数:
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| additionalInformation | object | ||
| expiration | string(date-time) | string(date-time) | |
| expired | boolean | ||
| expiresIn | integer(int32) | integer(int32) | |
| oauth2Exception | OAuth2Exception | OAuth2Exception | |
| additionalInformation | object | ||
| cause | Throwable | Throwable | |
| cause | Throwable | Throwable | |
| localizedMessage | string | ||
| message | string | ||
| stackTrace | array | StackTraceElement | |
| className | string | ||
| fileName | string | ||
| lineNumber | integer | ||
| methodName | string | ||
| nativeMethod | boolean | ||
| suppressed | array | Throwable | |
| httpErrorCode | integer(int32) | ||
| localizedMessage | string | ||
| message | string | ||
| oauth2ErrorCode | string | ||
| stackTrace | array | StackTraceElement | |
| className | string | ||
| fileName | string | ||
| lineNumber | integer | ||
| methodName | string | ||
| nativeMethod | boolean | ||
| summary | string | ||
| suppressed | array | Throwable | |
| cause | Throwable | Throwable | |
| localizedMessage | string | ||
| message | string | ||
| stackTrace | array | StackTraceElement | |
| className | string | ||
| fileName | string | ||
| lineNumber | integer | ||
| methodName | string | ||
| nativeMethod | boolean | ||
| suppressed | array | Throwable | |
| refreshToken | OAuth2RefreshToken | OAuth2RefreshToken | |
| scope | array | ||
| tokenType | string | ||
| value | string |
响应示例:
{
"additionalInformation": {},
"expiration": "",
"expired": true,
"expiresIn": 0,
"oauth2Exception": {
"additionalInformation": {},
"cause": {
"cause": {
"cause": {},
"localizedMessage": "",
"message": "",
"stackTrace": [
{
"className": "",
"fileName": "",
"lineNumber": 0,
"methodName": "",
"nativeMethod": true
}
],
"suppressed": [
{}
]
},
"localizedMessage": "",
"message": "",
"stackTrace": [
{
"className": "",
"fileName": "",
"lineNumber": 0,
"methodName": "",
"nativeMethod": true
}
],
"suppressed": [
{}
]
},
"httpErrorCode": 0,
"localizedMessage": "",
"message": "",
"oauth2ErrorCode": "",
"stackTrace": [
{
"className": "",
"fileName": "",
"lineNumber": 0,
"methodName": "",
"nativeMethod": true
}
],
"summary": "",
"suppressed": [
{}
]
},
"refreshToken": {},
"scope": [],
"tokenType": "",
"value": ""
}