开放平台
发起授权码流程
GET /v1/oauth2/authorize
GET
/v1/oauth2/authorizeConfidential client;仅接受 response_type=code 和 S256 PKCE。成功时 302 重定向至本站授权页,失败返回 OAuth {error}。
无需认证
查询参数
response_typestring必填可选值
"code"client_idstring必填redirect_uristring必填格式:uri
scopestring必填statestring可选长度 ≤ 1024
code_challengestring必填格式:^[A-Za-z0-9_-]{43}$
code_challenge_methodstring必填可选值
"S256"返回值
重定向到本站授权页
此响应没有正文。
响应头
Locationstring可选格式:uri
接口信息
接口: GET /v1/oauth2/authorize
operationId: authorizeOAuth
Confidential client;仅接受 response_type=code 和 S256 PKCE。成功时 302 重定向至本站授权页,失败返回 OAuth {error}。
参数:
queryresponse_type(必填)queryclient_id(必填)queryredirect_uri(必填)queryscope(必填)querystatequerycode_challenge(必填)querycode_challenge_method(必填)