mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-03-17 15:35:38 +08:00
wip: 自定义oauth2登录配置
This commit is contained in:
16
server/internal/sys/api/vo/auth.go
Normal file
16
server/internal/sys/api/vo/auth.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package vo
|
||||
|
||||
type OAuth2VO struct {
|
||||
ClientID string `json:"clientID"`
|
||||
ClientSecret string `json:"clientSecret"`
|
||||
AuthorizationURL string `json:"authorizationURL"`
|
||||
AccessTokenURL string `json:"accessTokenURL"`
|
||||
ResourceURL string `json:"resourceURL"`
|
||||
RedirectURL string `json:"redirectURL"`
|
||||
UserIdentifier string `json:"userIdentifier"`
|
||||
Scopes string `json:"scopes"`
|
||||
}
|
||||
|
||||
type AuthVO struct {
|
||||
*OAuth2VO `json:"oauth2"`
|
||||
}
|
||||
Reference in New Issue
Block a user