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"`
|
2023-07-21 21:18:31 +08:00
|
|
|
AutoRegister bool `json:"autoRegister"`
|
2023-07-20 20:34:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type AuthVO struct {
|
|
|
|
|
*OAuth2VO `json:"oauth2"`
|
|
|
|
|
}
|
2023-07-21 21:18:31 +08:00
|
|
|
|
2023-07-21 21:49:49 +08:00
|
|
|
type Auth2EnableVO struct {
|
2023-07-21 21:18:31 +08:00
|
|
|
OAuth2 bool `json:"oauth2"`
|
|
|
|
|
}
|
2023-07-21 21:49:49 +08:00
|
|
|
|
|
|
|
|
type AuthStatusVO struct {
|
|
|
|
|
Enable Auth2EnableVO `json:"enable"`
|
|
|
|
|
Bind Auth2EnableVO `json:"bind"`
|
|
|
|
|
}
|