wip: 自定义oauth2登录配置

This commit is contained in:
王一之
2023-07-20 20:34:05 +08:00
parent b7450f8869
commit 179b58e557
19 changed files with 409 additions and 9 deletions

View File

@@ -0,0 +1,12 @@
package form
type OAuth2Form struct {
ClientID string `json:"clientID" binding:"required"`
ClientSecret string `json:"clientSecret" binding:"required"`
AuthorizationURL string `json:"authorizationURL" binding:"required,url"`
AccessTokenURL string `json:"accessTokenURL" binding:"required,url"`
ResourceURL string `json:"resourceURL" binding:"required,url"`
RedirectURL string `json:"redirectURL" binding:"required,url"`
UserIdentifier string `json:"userIdentifier" binding:"required"`
Scopes string `json:"scopes"`
}