对接统一登录认证
This commit is contained in:
@@ -29,11 +29,21 @@ type DatasourceConfig struct {
|
||||
Password string `mapstructure:"password"`
|
||||
}
|
||||
|
||||
// 定义 OAuth 配置结构体
|
||||
type OAuthConfig struct {
|
||||
AUTHORIZATION_SERVER_HOST string `yaml:"authorization_server_host"`
|
||||
CLIENT_ID string `yaml:"client_id"`
|
||||
CLIENT_SECRET string `yaml:"client_secret"`
|
||||
REDIRECT_URI string `yaml:"redirect_uri"`
|
||||
TOKEN_URL string `yaml:"token_url"`
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
App AppConfig `mapstructure:"app"`
|
||||
Server ServerConfig `mapstructure:"server"`
|
||||
Datasource DatasourceConfig `mapstructure:"datasource"`
|
||||
Logging LoggingConfig `mapstructure:"logging"`
|
||||
OAuth OAuthConfig `mapstructure:"oauth"`
|
||||
ServerAddress string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user