feat: The /login/oauth/access_token api supports the token and id_token grant types. (#2836)

* In the response of the /api/get-captcha endpoint, add the parameters "owner" and "name" because these two parameters will be used when calling the /api/verify-captcha endpoint.

* The /login/oauth/access_token api supports the token and id_token grant types.
This commit is contained in:
Will.Feng
2024-03-28 00:41:54 +08:00
committed by GitHub
parent b158b840bd
commit d054f3e001
3 changed files with 36 additions and 2 deletions

View File

@ -21,6 +21,7 @@ type TokenRequest struct {
Code string `json:"code"`
Verifier string `json:"code_verifier"`
Scope string `json:"scope"`
Nonce string `json:"nonce"`
Username string `json:"username"`
Password string `json:"password"`
Tag string `json:"tag"`