跳转到主要内容
POST
POST /admin/api/credential-login/authcode/complete

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

请求体

application/json

Finish a browser redirect login, with either the whole callback URL or the authorization code picked out of it — never both.

loginSessionId
string
必填
callbackUrl
string | null

The callback as the browser received it; code and state are read out of its query.

code
string | null

The bare authorization code, for a caller that already parsed it.

state
string | null

The state that came back with a bare code. Absent skips the comparison; present and different is refused.

响应

Success

A login that produced a credential row. The secret is already sealed in the database; nothing about it travels back.

credentialId
string
必填