mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-10 17:26:38 +08:00
去除默认OIDC
This commit is contained in:
@@ -20,7 +20,6 @@ import "time"
|
||||
|
||||
type configModel struct {
|
||||
App appConfig `mapstructure:"app"`
|
||||
OAuth2 OAuth2Config `mapstructure:"oauth2"`
|
||||
Database databaseConfig `mapstructure:"database"`
|
||||
Redis redisConfig `mapstructure:"redis"`
|
||||
Log logConfig `mapstructure:"log"`
|
||||
@@ -54,17 +53,6 @@ func (a *appConfig) IsProduction() bool {
|
||||
return a.Env == "production"
|
||||
}
|
||||
|
||||
// OAuth2Config OAuth2/OIDC认证配置
|
||||
type OAuth2Config struct {
|
||||
ClientID string `mapstructure:"client_id"`
|
||||
ClientSecret string `mapstructure:"client_secret"`
|
||||
RedirectURI string `mapstructure:"redirect_uri"`
|
||||
Issuer string `mapstructure:"issuer"`
|
||||
AuthorizationEndpoint string `mapstructure:"authorization_endpoint"`
|
||||
TokenEndpoint string `mapstructure:"token_endpoint"`
|
||||
UserEndpoint string `mapstructure:"user_endpoint"`
|
||||
}
|
||||
|
||||
// databaseConfig 数据库配置
|
||||
type databaseConfig struct {
|
||||
Enabled bool `mapstructure:"enabled"`
|
||||
|
||||
Reference in New Issue
Block a user