Common AuthCommon AuthAPI 文档
OAuth 2.0 · OIDCOpenAPI v1.0.0

令牌端点

/api/oauth/token

post/api/oauth/token

令牌端点

请求体 · application/x-www-form-urlencoded必填

字段类型说明
grant_type*string · authorization_code | refresh_token-
codestring-
redirect_uristring-
client_idstring-
client_secretstring-
code_verifierstring-
refresh_tokenstring-

响应

200令牌响应
字段类型说明
access_token*string-
token_type*string · Bearer-
expires_in*integer访问令牌有效期(秒),默认 3600。须在过期前用 refresh_token 续期。
scopestring-
refresh_token*string授权码与刷新授予均返回。刷新时轮换;宽限期内重复使用旧值返回同一组新令牌。
id_tokenstring-
400RFC 6749 错误
字段类型说明
error*string-
error_descriptionstring-
401客户端认证失败