Files
mayfly-go/server/internal/sys/api/vo/auth.go

22 lines
568 B
Go
Raw Normal View History

2023-07-20 20:34:05 +08:00
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"`
AutoRegister bool `json:"autoRegister"`
2023-07-20 20:34:05 +08:00
}
type AuthVO struct {
*OAuth2VO `json:"oauth2"`
}
type OAuth2EnableVO struct {
OAuth2 bool `json:"oauth2"`
}