From 2c35c11772b74314ac9590ee1c4e34a3a216a155 Mon Sep 17 00:00:00 2001 From: John Olheiser Date: Wed, 1 Mar 2023 06:21:34 +0800 Subject: [PATCH] Add confidential_client to oauth2 struct (#613) Just updating the struct to match the current API Co-authored-by: jolheiser Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/613 Reviewed-by: techknowlogick Reviewed-by: Lunny Xiao Co-authored-by: John Olheiser Co-committed-by: John Olheiser --- gitea/oauth2.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gitea/oauth2.go b/gitea/oauth2.go index bbdfdaf..ec1a074 100644 --- a/gitea/oauth2.go +++ b/gitea/oauth2.go @@ -28,8 +28,9 @@ type ListOauth2Option struct { // CreateOauth2Option required options for creating an Application type CreateOauth2Option struct { - Name string `json:"name"` - RedirectURIs []string `json:"redirect_uris"` + Name string `json:"name"` + RedirectURIs []string `json:"redirect_uris"` + ConfidentialClient bool `json:"confidential_client"` } // CreateOauth2 create an Oauth2 Application and returns a completed Oauth2 object.