aboutsummaryrefslogtreecommitdiffstats
path: root/services/forms
diff options
context:
space:
mode:
authorDenys Konovalov <kontakt@denyskon.de>2024-07-19 14:28:30 -0400
committerGitHub <noreply@github.com>2024-07-19 14:28:30 -0400
commita8d0c879c38e21a8e78db627119bf622d919ee75 (patch)
treef55cbd55c967d11e7e4a4c4c96ce7b6db8345353 /services/forms
parente9aa39bda4581a69f04dd1d46aab7980940e99ce (diff)
downloadgitea-a8d0c879c38e21a8e78db627119bf622d919ee75.tar.gz
gitea-a8d0c879c38e21a8e78db627119bf622d919ee75.zip
add skip secondary authorization option for public oauth2 clients (#31454)
Diffstat (limited to 'services/forms')
-rw-r--r--services/forms/user_form.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/services/forms/user_form.go b/services/forms/user_form.go
index b4be1e02b7..5b7a43642a 100644
--- a/services/forms/user_form.go
+++ b/services/forms/user_form.go
@@ -365,9 +365,10 @@ func (f *NewAccessTokenForm) GetScope() (auth_model.AccessTokenScope, error) {
// EditOAuth2ApplicationForm form for editing oauth2 applications
type EditOAuth2ApplicationForm struct {
- Name string `binding:"Required;MaxSize(255)" form:"application_name"`
- RedirectURIs string `binding:"Required" form:"redirect_uris"`
- ConfidentialClient bool `form:"confidential_client"`
+ Name string `binding:"Required;MaxSize(255)" form:"application_name"`
+ RedirectURIs string `binding:"Required" form:"redirect_uris"`
+ ConfidentialClient bool `form:"confidential_client"`
+ SkipSecondaryAuthorization bool `form:"skip_secondary_authorization"`
}
// Validate validates the fields