跳到主要内容
Sursa Developers

对象

OAuthTokenRequest

application/x-www-form-urlencoded 表单的字段(RFC 6749,第 4.1.3、4.4.2 和 6 节)。

字段

  • grant_typestring必填

    可选值: authorization_coderefresh_tokenclient_credentials

  • codestring

    授权码(authorization_code)。

  • redirect_uristring

    与授权请求中相同的重定向 URI(authorization_code)。

  • code_verifierstring

    原始的 PKCE 值,43 到 128 个字符(authorization_code)。

  • refresh_tokenstring

    刷新令牌(refresh_token)。

  • scopestring

    以空格分隔的权限范围,只能缩小(refresh_token、client_credentials)。

  • client_idstring

    应用 ID,用于未在 Authorization: Basic 头中传递密钥的情况。

  • client_secretstring

    confidential 应用的客户端密钥,用于未在 Authorization: Basic 头中传递的情况。

使用方