diff options
author | Jonas Franz <info@jonasfranz.software> | 2019-04-15 17:54:50 +0200 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-04-15 11:54:50 -0400 |
commit | 62d3f49c28c9df2991793fe6846b10088fd5d770 (patch) | |
tree | 87aa1161b6b9f3e64a5a46d1f3d8c92d387777e8 /modules | |
parent | e6161b09fffe53273b6b91435f0dca39053920c8 (diff) | |
download | gitea-62d3f49c28c9df2991793fe6846b10088fd5d770.tar.gz gitea-62d3f49c28c9df2991793fe6846b10088fd5d770.zip |
Add json tags for oauth2 form (#6627)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/user_form.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index 810a2f941a..38ee5415d9 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -168,15 +168,15 @@ func (f *GrantApplicationForm) Validate(ctx *macaron.Context, errs binding.Error // AccessTokenForm for issuing access tokens from authorization codes or refresh tokens type AccessTokenForm struct { - GrantType string - ClientID string - ClientSecret string - RedirectURI string - Code string - RefreshToken string + GrantType string `json:"grant_type"` + ClientID string `json:"client_id"` + ClientSecret string `json:"client_secret"` + RedirectURI string `json:"redirect_uri"` + Code string `json:"code"` + RefreshToken string `json:"refresh_token"` // PKCE support - CodeVerifier string + CodeVerifier string `json:"code_verifier"` } // Validate valideates the fields |