跳到主要内容
版本:3.5.x

获取AccessToken接口

OAuth 2.0 获取AccessToken接口

接口地址:/sign/authz/oauth/v20/token

请求方式:GET POST

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

传递参数token等

请求参数:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
parametersparametersquerytrueobject

响应状态:

状态码说明schema
200OKOAuth2AccessToken
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
additionalInformationobject
expirationstring(date-time)string(date-time)
expiredboolean
expiresIninteger(int32)integer(int32)
oauth2ExceptionOAuth2ExceptionOAuth2Exception
  additionalInformationobject
  causeThrowableThrowable
    causeThrowableThrowable
    localizedMessagestring
    messagestring
    stackTracearrayStackTraceElement
      classNamestring
      fileNamestring
      lineNumberinteger
      methodNamestring
      nativeMethodboolean
    suppressedarrayThrowable
  httpErrorCodeinteger(int32)
  localizedMessagestring
  messagestring
  oauth2ErrorCodestring
  stackTracearrayStackTraceElement
    classNamestring
    fileNamestring
    lineNumberinteger
    methodNamestring
    nativeMethodboolean
  summarystring
  suppressedarrayThrowable
    causeThrowableThrowable
    localizedMessagestring
    messagestring
    stackTracearrayStackTraceElement
      classNamestring
      fileNamestring
      lineNumberinteger
      methodNamestring
      nativeMethodboolean
    suppressedarrayThrowable
refreshTokenOAuth2RefreshTokenOAuth2RefreshToken
scopearray
tokenTypestring
valuestring

响应示例:

{
"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": ""
}