mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
wip: 自定义oauth2登录配置
This commit is contained in:
12
server/internal/sys/api/form/auth.go
Normal file
12
server/internal/sys/api/form/auth.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user